splunk / eventgen

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

[BUG] The `timezone` parameter doesn't work when Eventgen is run as a Splunk app #321

Closed hexecute closed 4 years ago

hexecute commented 5 years ago

Describe the bug The timezone parameter is ignored when using SA-Eventgen.

To Reproduce Steps to reproduce the behavior:

  1. Install and setup SA-Eventgen 6.5.2 (using the eventgen.conf below)
  2. Look at the data coming in

Expected behavior The timezone parameter should be respected. The event data coming into Splunk should have a different timestamp than on the original events.

Actual behavior The event data coming into Splunk has the same timestamp of the original events.

Sample files and eventgen.conf file eventgen.conf.txt

Do you run eventgen with SA-eventgen? Yes

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

GordonWang commented 4 years ago

I use the uploaded config file and tried to reproduce this issue. But I cannot reproduce it. See the attachment pic image

Current China Standard time is about 2019-12-2 19:31. And the timezone config is

timezone = -0100

So, the time diff is about 9 hours early. This is the expected behavior.

And you can see that the "_time" value is exactly the same as the time string in _raw event. This is what replay and timezone behave.

@hexecute Can you give me more detail steps about how to reproduce this issue?

GordonWang commented 4 years ago

@hexecute l close this ticket as can not reproduce. feel free to reopen it if you have more findings.