-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #425 from splunk/release/7_2_1
Release eventgen 7.2.1. Merge to master branch.
- Loading branch information
Showing
24 changed files
with
121 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api" | |
|
||
[tool.poetry] | ||
name = "splunk_eventgen" | ||
version = "7.2.0" | ||
version = "7.2.1" | ||
description = "Splunk Event Generator to produce real-time, representative data" | ||
authors = [ "Brian Bingham <[email protected]>", "Tony Lee <[email protected]>", "Jack Meixensperger <[email protected]>",] | ||
license = "Apache-2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### Introduction | ||
|
||
SA-Eventgen (Splunk App Eventgen) allows users to generate and index custom event data on their Splunk instance. | ||
This app is currently built and maintained through the [Eventgen repository](https://github.com/splunk/eventgen). | ||
|
||
### Documentation | ||
|
||
The general Eventgen documentation is hosted on [Github](http://splunk.github.io/eventgen). | ||
For installation and configuration instructions specific to the Splunk App, see the | ||
[app install](http://splunk.github.io/eventgen/SETUP.html#splunk-app-installation) page of the documentation. | ||
|
||
Finally, see to the [Eventgen Reference Guide](http://splunk.github.io/eventgen/REFERENCE.html#eventgenconfspec) | ||
for information on Eventgen configuration options. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[modinput_eventgen://<name>] | ||
verbosity = <value> | ||
python.version = python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[sample] | ||
sampleDir = ../sample | ||
sampletype = raw | ||
outputMode = file | ||
fileName = tests/large/results/eventgen_perdayvolume.result | ||
perDayVolume = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[sample] | ||
sampleDir = ../sample | ||
sampletype = raw | ||
outputMode = file | ||
fileName = tests/large/results/eventgen_perdayvolume.result | ||
perDayVolume = 1 | ||
|
||
token.0.token = @@integer | ||
token.0.replacementType = static | ||
token.0.replacement = "supercalifragilisticexpialidocious" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[sample] | ||
sampleDir = ../sample | ||
sampletype = raw | ||
outputMode = file | ||
fileName = tests/large/results/eventgen_perdayvolume.result | ||
perDayVolume = 1 | ||
|
||
token.0.token = @@integer | ||
token.0.replacementType = random | ||
token.0.replacement = integer[0:10] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from pytest import mark | ||
|
||
|
||
def calculate_perdayvolume(events, runtime, interval=60): | ||
# Calculate expected data volume output (GB) if run for 24 hours | ||
# Get the integer # of intervals, data is only generated on completion of an interval | ||
num_intervals = runtime // interval | ||
event_volume = sum([len(event) for event in events]) | ||
total_volume = event_volume / 1024 / 1024 / 1024 * 60 * 24 | ||
perdayvolume = total_volume / num_intervals | ||
return perdayvolume | ||
|
||
|
||
@mark.parametrize( | ||
("conf_filename", "execution_timeout", "perdayvolume"), | ||
[ | ||
("eventgen_perdayvolume.conf", 300, 1), | ||
("eventgen_perdayvolume_small_token.conf", 300, 1), | ||
("eventgen_perdayvolume_large_token.conf", 300, 1), | ||
], | ||
) | ||
def test_perdayvolume( | ||
eventgen_test_helper, conf_filename, execution_timeout, perdayvolume | ||
): | ||
# Test accuracy of small volume target with no token replacements | ||
# TODO: using outputMode=file for now, test helper unable to collect all generated events w/ outputMode=stdout | ||
events = eventgen_test_helper(conf_filename, execution_timeout).get_events() | ||
assert ( | ||
0.98 < (calculate_perdayvolume(events, execution_timeout) / perdayvolume) < 1.02 | ||
) |