splunk / eventgen

Splunk Event Generator: Eventgen
Apache License 2.0
380 stars 179 forks source link

[BUG]ExtendIndexes mixed my sourcetype #269

Closed Yangxulight closed 5 years ago

Yangxulight commented 5 years ago

Describe the bug When I set extendIndexes values in "sample1", it makes all the samples events being sent to that "extendIndexes". For example, when my "sample1" has "sourcetype=syslog, extendIndexes=test:3", and my "sample2" has "sourcetype=cisco, index=main". The result is that I saw "cisco, syslog" sourcetype from search index=test* SPL

To Reproduce For example, when my "sample1" has "sourcetype=syslog, extendIndexes=test:3", and my "sample2" has "sourcetype=cisco, index=main". The result is that I saw "cisco, syslog" sourcetype from search index=test* SPL

Expected behavior "extendIndexes" setting in one sample should only affect that sample, not all samples.

Actual behavior "extendIndexes" setting in one sample affects all samples.

Screenshots If applicable, add screenshots to help explain your problem.

Sample files and eventgen.conf file Please attach your sample files and eventgen conf file

Do you run eventgen with SA-eventgen? Yes/No(No means you run eventgen with pip module mode)

If you are using SA-Eventgen with Splunk (please complete the following information):

If you are using eventgen with pip module mode (please complete the following information):

Additional context Add any other context about the problem here.