Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release eventgen 7.1.0. Merge to master branch. #373

Merged
merged 59 commits into from
Apr 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
b1b6c4a
Fix structlog dependency for app (#280)
Aug 1, 2019
3e4cb1b
zipfile fix (#284)
Aug 20, 2019
9bcfdfb
Fix bug 286 random token replacement (#287)
Aug 22, 2019
fe50964
Versioning scheme (#278)
Aug 26, 2019
6ef4255
[global] perDayVolume (#288)
jmeixensperger Aug 30, 2019
aa48a44
Fix security vulnerability issue (#289)
Aug 30, 2019
77cfabf
Fix custom plugin stale docs (#290)
Aug 30, 2019
f29c332
Server fix (#293)
Sep 3, 2019
1720fee
Fix bug 285 (#297)
Sep 18, 2019
906e4d9
Add syslogAddHeader config directive (#296)
patriknordlen Sep 24, 2019
901453c
timezone setting bugfix #249
GordonWang Sep 25, 2019
e36b1f8
Using multiprocess pool to address the OOM issue (#301)
Oct 8, 2019
48c25c4
Remove workerQueue unfinished tasks (#302)
jmeixensperger Oct 8, 2019
0b8e3f8
Bumped version to 6.5.2
Oct 8, 2019
8ff4033
Merge branch 'release-6.5.2' into develop
Oct 8, 2019
684d1f4
controller fix (#304)
Oct 9, 2019
88fcd5d
Merge branch 'master' into develop
Oct 9, 2019
8dfcd1e
variable assignment fix (#306)
Oct 10, 2019
3b473ad
Merge branch 'master' into develop
Oct 10, 2019
25a7f1c
add healthcheck endpoint and ping it every half an hour (#308)
Devmalion Oct 14, 2019
418eeeb
Fix security vulnerability issue reported by GitHub (#309)
Oct 14, 2019
b6b4de5
make controller also hit redis on healthcheck (#311)
Devmalion Oct 14, 2019
b0183fa
Merge branch 'master' into develop
Oct 14, 2019
5352ac2
Fixed typo (#313)
Oct 17, 2019
f8e4406
update redis version to use new functions (#318)
Devmalion Oct 17, 2019
f22869a
Update tutorial related docs (#315)
Oct 17, 2019
ef61674
Revert oom fix change (#320)
Oct 18, 2019
e8c460b
make circle ci fail when test case fails (#317)
GordonWang Oct 19, 2019
b95b59d
Add disable logging option to fix oom (#323)
Oct 22, 2019
e0a02e4
Fixing api server (#322)
Oct 22, 2019
523ea23
Py3 upgrade (#291)
Oct 23, 2019
188ac04
Bump version to 7.0.0
Oct 23, 2019
e508bc2
Fix dateutil package bug
Oct 23, 2019
807ce11
Merge branch 'release-7.0.0' into develop
Oct 23, 2019
f535790
cleanup memory (#326)
Oct 24, 2019
7e3fd76
Fixed standalone healthcheck (#328)
Oct 25, 2019
ac58f6b
Add python2 libs required by perf test case (#331)
Oct 29, 2019
e665658
make splunk_eventgen as a module (#332)
GordonWang Oct 29, 2019
64d0935
Fix oom caused by ujson (#336)
Oct 31, 2019
1ecce27
add release automation script (#335)
GordonWang Nov 1, 2019
34f06af
Fix process leak and start/stop 500 issue (#344)
Nov 8, 2019
a9e5600
Fix high system load issue (#345)
Nov 8, 2019
6193825
Adding an option (#340)
Nov 11, 2019
9ffbcbc
Scp plugin (#343)
Nov 12, 2019
1b695d8
revert (#347)
Nov 13, 2019
fbe8b25
changing name (#349)
Nov 14, 2019
9730801
Change (#350)
Nov 20, 2019
775b1a8
change token type (#351)
jmeixensperger Dec 3, 2019
20603c1
Add multithread support (#353)
Dec 17, 2019
38a201a
Revert coverage version to 4.5.4 (#355)
Dec 19, 2019
f33c072
Fix CI failure cased by jinja new version and update the log config t…
Feb 20, 2020
6cf054b
Add missing documentation for negative floats, as introduced in PR#12…
technimad Feb 27, 2020
305552d
Bump nokogiri from 1.10.4 to 1.10.8 in /docs (#359)
dependabot[bot] Feb 27, 2020
addcc9f
Fix jinja plugin bug and test addon sample (#361)
Mar 2, 2020
e91d4b8
regex stanza bugfix (#365)
jmeixensperger Apr 6, 2020
d175b10
Improvement/release script (#368)
GordonWang Apr 6, 2020
d96d1a4
Correct python2/3 issue (#363)
ryanfaircloth Apr 6, 2020
5a5eb17
update eventgen version to 7.1.0
jmeixensperger Apr 6, 2020
9316e19
resolve merge conflicts
jmeixensperger Apr 6, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ test_helper:
docker cp . ${EVENTGEN_TEST_IMAGE}:$(shell pwd)

@echo 'Verifying contents of pip.conf'
docker exec -i ${EVENTGEN_TEST_IMAGE} /bin/sh -c "cd $(shell pwd); pip install dist/splunk_eventgen*.tar.gz"
docker exec -i ${EVENTGEN_TEST_IMAGE} /bin/sh -c "cd $(shell pwd); pip3 install dist/splunk_eventgen*.tar.gz"

@echo 'Installing test requirements'
docker exec -i ${EVENTGEN_TEST_IMAGE} /bin/sh -c "pip install --upgrade pip;pip install -r $(shell pwd)/requirements.txt"
docker exec -i ${EVENTGEN_TEST_IMAGE} /bin/sh -c "pip3 install --upgrade pip;pip3 install -r $(shell pwd)/requirements.txt;pip3 install git+https://github.com/esnme/ultrajson.git"

@echo 'Make simulated app dir and sample for modular input test'
docker exec -i ${EVENTGEN_TEST_IMAGE} /bin/sh -c "cd $(shell pwd); cd ../..; mkdir -p modinput_test_app/samples/"
Expand All @@ -51,12 +51,15 @@ test_helper:
@echo 'Installing docker-compose'
bash install_docker_compose.sh

@echo 'Build a docker image'
docker build -t provision_splunk:latest -f tests/large/provision/Dockerfile tests/large/provision

@echo 'Start container with splunk'
docker-compose -f tests/large/provision/docker-compose.yml up &

sleep 120
@echo 'Provision splunk container'
docker-compose -f tests/large/provision/docker-compose.yml exec -T splunk sh -c 'cd /opt/splunk;./provision.sh;/opt/splunk/bin/splunk enable listen 9997 -auth admin:changeme;/opt/splunk/bin/splunk add index test_0;/opt/splunk/bin/splunk add index test_1;/opt/splunk/bin/splunk restart'
docker exec --user splunk provision_splunk_1 sh -c 'cd /opt/splunk;./provision.sh;./add_httpevent_collector.sh;/opt/splunk/bin/splunk enable listen 9997 -auth admin:changeme;/opt/splunk/bin/splunk add index test_0;/opt/splunk/bin/splunk add index test_1;/opt/splunk/bin/splunk restart'

run_tests:
@echo 'Running the super awesome tests'
Expand Down
6 changes: 5 additions & 1 deletion dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ RUN apk --no-cache upgrade && \
apk add --no-cache --update \
python3 \
python3-dev \
python2-dev \
py2-pip \
gcc \
libc-dev \
libffi-dev \
Expand All @@ -26,7 +28,9 @@ RUN apk --no-cache upgrade && \
mkdir -p /root/.ssh && \
chmod 0700 /root/.ssh && \
passwd -u root && \
pip3 install git+git://github.com/esnme/ultrajson.git
# install dependencies of conduct2 used by perf
pip2 install filelock twisted requests queuelib ujson psutil crochet msgpack-python unidecode attrdict service_identity && \
pip2 install git+https://github.com/esnme/ultrajson.git

COPY dockerfiles/sshd_config /etc/ssh/sshd_config
COPY dockerfiles/entrypoint.sh /sbin/entrypoint.sh
Expand Down
147 changes: 58 additions & 89 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,89 +1,58 @@
6.5.0
- Added metrics output mode
- Fixed regex token replacement issue
- Added test coverage information
- Increased functional test coverage
- Eventgen server complete revamp and standalone mode support
- Added contributor license
- Updated Dockerfile
- Added documentation
- Fixed bugs / stability / optimized speed

6.4.0
- Fixed exception log error
- Fixed CircleCI status badage error
- Fixed navigation error for app if installed with Splunk Stream
- Fixed generatorWorkers not working error
- Fixed interval error when end = 1
- Fixed fileName in global stanza error
- Added 3rd party libs in SA-Eventgen App
- Added httpeventAllowFailureCount for httpevent
- Added 3rd party libs in license credit
- Disabled logging queue in multiprocess mode
- Changed implementation of extendIndex for better performance

6.3.6
- Added functional tests for jinja template and modular input feature
- Fixed default jinja template directory is not correctly resolved when sampleDir is set issue
- Fixed verbose flag not working in splunk_eventgen command line issue
- Fixed index, source, sourcetype are not correct when using splunkstream mode issue
- Fixed ssh to container issue
- Fixed perdayvolume without end setting error
- Updated documentation for better reading and remove unrelated part

6.3.5
- Added extendIndexes feature to support a list of indexes
- Fixed timer and token logic
- Changed end=-1 to continuously iterate without stopping
- Changed end=0 to not execute
- Added a linter for code quality
- Updated docs / docs format
- Added a suite of functional tests

6.3.4:
- Documentation cleanup
- Jinja template bugfix in app
- Implementation of 'timeMultiple’ option
- Templates for bugs/feature requests
- Fixed Jinja test configuration stanzas
- Default behavior for 'count' edge cases

6.3.3:
- Added performance metrics compared to Eventgen 5.x
- New config option for generation-time metrics: outputCounter
- Jinja template fixes
- Timestamp parsing fix
- Output queueing fix for outputMode splunkstream
- Count rater fixes, now supports indefinite generation

6.3.2:
- Fixed verbosity bug
- Added documentation

6.3.1:
- Fixed Eventgen Volume APIs
- Improved Eventgen Server Logging
- Corrected Eventgen Server and Controller conf syncing issue
- Adding verbosity options (ERROR, INFO, DEBUG) to Eventgen modinput
- Implemented future event generation support in replay mode
- Fixed Jinja template's missing default values
- Adjusted logging message levels for less verbosity
- Fixed event count off by 1 issue
- Fixed unnecessary empty data generators being created
- Updated dependency list

6.3.0:
- Bug fixes for the customer issues
- Documentation upgrade
- Code refactoring for version unification
- Logging improvements

6.2.1:
- Fixing SA-Eventgen Dashboard and log searching
- Improving internal logging and fixing splunkd logging issue
- Fixing timestamping in default generator
- Fixing custom plugin integration
- Fixing SA-Eventgen app settings
- Supporting Eventgen 5 backward compatibility with additional features
- Better modinput process management
- Minor Bugfixes with various customer cases
**7.1.0**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/7.1.0)

**7.0.0**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/7.0.0)

**6.5.2**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/6.5.2)


**6.5.1**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/6.5.1)


**6.5.0**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/6.5.0)

**6.4.0**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/6.4.0)

**6.3.6**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/6.3.6)

**6.3.5**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/6.3.5)

**6.3.4**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/6.3.4)

**6.3.3**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/6.3.3)

**6.3.2**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/6.3.2)

**6.3.1**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/6.3.1)

**6.3.0**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/6.3.0)

**6.2.1**:

- Check the release note and download the package/source from [Here](https://github.com/splunk/eventgen/releases/tag/6.2.1)

3 changes: 1 addition & 2 deletions docs/CONFIGURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,7 @@ Tokens in the default generator can override the sample to allow dynamic content
and <end> is a number greater than 0 and greater than or equal to <start>. If rated,
will be multiplied times hourOfDayRate and dayOfWeekRate.
* For float[<start>:<end>], the token will be replaced with a random float between
start and end values where <start> is a number greater than 0
and <end> is a number greater than 0 and greater than or equal to <start>.
start and end values where <end> is a number greater than or equal to <start>.
For floating point numbers, precision will be based off the precision specified
in <start>. For example, if we specify 1.0, precision will be one digit, if we specify
1.0000, precision will be four digits. If rated, will be multiplied times hourOfDayRate and dayOfWeekRate.
Expand Down
2 changes: 1 addition & 1 deletion docs/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ GEM
jekyll-seo-tag (~> 2.1)
minitest (5.12.2)
multipart-post (2.1.1)
nokogiri (1.10.4)
nokogiri (1.10.8)
mini_portile2 (~> 2.4.0)
octokit (4.14.0)
sawyer (~> 0.8.0, >= 0.5.3)
Expand Down
28 changes: 24 additions & 4 deletions docs/REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,38 @@ outputWorkers = <number of worker threads>
* Generally if using TCP based outputs like splunkstream, more could be required
* Defaults to 1

outputMode = modinput | s2s | file | splunkstream | stdout | devnull | spool | httpevent | syslogout | tcpout | udpout | metric_httpevent
outputMode = scsout | modinput | s2s | file | splunkstream | stdout | devnull | spool | httpevent | syslogout | tcpout | udpout | metric_httpevent
* Specifies how to output log data. Modinput is default.
* If setting scsout, should set scsEndPoint and scsAccessToken. scsClientId, scsClientSecret, and scsRetryNum are optional.
* If setting spool, should set spoolDir
* If setting file, should set fileName
* If setting splunkstream, should set splunkHost, splunkPort, splunkMethod,
splunkUser and splunkPassword if not Splunk embedded
* If setting s2s, should set splunkHost and splunkPort
* If setting syslogout, should set syslogDestinationHost and syslogDestinationPort
* If setting syslogout, should set syslogDestinationHost and syslogDestinationPort. A UDP port listening on Splunk needs to be configured. https://docs.splunk.com/Documentation/Splunk/latest/Data/HowSplunkEnterprisehandlessyslogdata
* If setting httpevent, should set httpeventServers
* If setting metric_httpevent, should set httpeventServers and make sure your index is a splunk metric index

scsEndPoint = <host>
* Should be a full url to the scs endpoint

scsAccessToken = <token>
* Should be a scs access token. Do not include "Bearer".

scsClientId = <id>
* Optional
* SCS client id that is used to renew the access token if it expires during the data generation
* If not supplied, will not renew the access token and data transmission might fail

scsClientSecret = <secret>
* Optional
* SCS client secret that is used to renew the access token if it expires during the data generation
* If not supplied, will not renew the access token and data transmission might fail

scsRetryNum = <int>
* Optional and defaults to 0
* Retry a failing data transmission batch

syslogDestinationHost = <host>
* Defaults to 127.0.0.1

Expand Down Expand Up @@ -543,8 +564,7 @@ token.<n>.replacement = <string> | <strptime> | ["list","of","strptime"] | guid
and <end> is a number greater than 0 and greater than or equal to <start>.
If rated, will be multiplied times hourOfDayRate and dayOfWeekRate.
* For float[<start>:<end>], the token will be replaced with a random float between
start and end values where <start> is a number greater than 0
and <end> is a number greater than 0 and greater than or equal to <start>.
start and end values where <end> is a number greater than or equal to <start>.
For floating point numbers, precision will be based off the precision specified
in <start>. For example, if we specify 1.0, precision will be one digit,
if we specify 1.0000, precision will be four digits. If rated,
Expand Down
15 changes: 15 additions & 0 deletions release_tool/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Release tool

Use script to bump the release verison and create the release PR to merge to develop branch.

**Note: this script only works with python3.**

- If you have generated your github access token, you can use the following command to bump versions and send PR automatically.
```bash
python prepare_release_branch.py -v -n <release_version> -a <your_access_token>
```

- If the access token is not given, this script only is only used to bump the release version and push the commit to remote repo. You need to go to github web page to create your PR manually.
```
python prepare_release_branch.py -v -n <release_version>
```
Loading