<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Eventgen is giving error in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Eventgen-is-giving-error/m-p/409230#M6182</link>
    <description>&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;
  File "/opt/splunk/etc/apps/SA-Eventgen/lib/splunk_eventgen/lib/plugins/generator/replay.py", line 103, in gen&lt;BR /&gt;
    current_event_timestamp = self._sample.getTSFromEvent(line["_time"])&lt;BR /&gt;
KeyError: '_time'&lt;BR /&gt;
2019-04-16 18:41:44 eventgen        ERROR    MainProcess Extracting timestamp from an event failed.&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "/opt/splunk/etc/apps/SA-Eventgen/lib/splunk_eventgen/lib/plugins/generator/replay.py", line 103, in gen&lt;BR /&gt;
    current_event_timestamp = self._sample.getTSFromEvent(line["_time"])&lt;BR /&gt;
KeyError: '_time'&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:06:15 GMT</pubDate>
    <dc:creator>rahulhoney</dc:creator>
    <dc:date>2020-09-30T00:06:15Z</dc:date>
    <item>
      <title>Eventgen is giving error</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Eventgen-is-giving-error/m-p/409230#M6182</link>
      <description>&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;
  File "/opt/splunk/etc/apps/SA-Eventgen/lib/splunk_eventgen/lib/plugins/generator/replay.py", line 103, in gen&lt;BR /&gt;
    current_event_timestamp = self._sample.getTSFromEvent(line["_time"])&lt;BR /&gt;
KeyError: '_time'&lt;BR /&gt;
2019-04-16 18:41:44 eventgen        ERROR    MainProcess Extracting timestamp from an event failed.&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "/opt/splunk/etc/apps/SA-Eventgen/lib/splunk_eventgen/lib/plugins/generator/replay.py", line 103, in gen&lt;BR /&gt;
    current_event_timestamp = self._sample.getTSFromEvent(line["_time"])&lt;BR /&gt;
KeyError: '_time'&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Eventgen-is-giving-error/m-p/409230#M6182</guid>
      <dc:creator>rahulhoney</dc:creator>
      <dc:date>2020-09-30T00:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Eventgen is giving error</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Eventgen-is-giving-error/m-p/409231#M6183</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;HI Rahul, We might get to the issue bu looking at the conf which you are using.
Below is a similar error, check if this helps.
&lt;A href="https://answers.splunk.com/answers/306603/eventgen-is-there-a-known-bug-with-backfill-and-re.html" target="test_blank"&gt;https://answers.splunk.com/answers/306603/eventgen-is-there-a-known-bug-with-backfill-and-re.html&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Apr 2019 19:14:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Eventgen-is-giving-error/m-p/409231#M6183</guid>
      <dc:creator>pruthvikrishnap</dc:creator>
      <dc:date>2019-04-16T19:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Eventgen is giving error</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Eventgen-is-giving-error/m-p/409232#M6184</link>
      <description>&lt;P&gt;From below only sample.tutorial1 is working and other 2 are not.&lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/apps/SA-Eventgen/local/eventgen.conf&lt;BR /&gt;
[sample.tutorial1]&lt;BR /&gt;
mode = replay&lt;BR /&gt;
sampletype = csv&lt;BR /&gt;
timeMultiple = 2&lt;BR /&gt;
backfill = -15m&lt;BR /&gt;
backfillSearch = index=main sourcetype=splunkd&lt;/P&gt;

&lt;P&gt;outputMode = splunkstream&lt;BR /&gt;
splunkHost = localhost&lt;BR /&gt;
splunkUser = rahuld&lt;BR /&gt;
splunkPass = ########&lt;/P&gt;

&lt;P&gt;token.0.token = \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3}&lt;BR /&gt;
token.0.replacementType = timestamp&lt;BR /&gt;
token.0.replacement = %Y-%m-%d %H:%M:%S,%f&lt;/P&gt;

&lt;P&gt;[test]&lt;BR /&gt;
mode = replay&lt;BR /&gt;
sampletype = csv&lt;BR /&gt;
timeMultiple = 2&lt;BR /&gt;
backfill = -15m&lt;BR /&gt;
backfillSearch = index=main sourcetype=rahuld&lt;/P&gt;

&lt;P&gt;outputMode = splunkstream&lt;BR /&gt;
splunkHost = localhost&lt;BR /&gt;
splunkUser = rahuld&lt;BR /&gt;
splunkPass = ########&lt;/P&gt;

&lt;P&gt;token.0.token = \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3}&lt;BR /&gt;
token.0.replacementType = timestamp&lt;BR /&gt;
token.0.replacement = %Y-%m-%d %H:%M:%S,%f&lt;/P&gt;

&lt;P&gt;[test2.raw]&lt;BR /&gt;
index=demo&lt;BR /&gt;
host=myHost&lt;BR /&gt;
source=test2.raw&lt;BR /&gt;
breaker = \r*\n\r*\n&lt;BR /&gt;
mode = replay&lt;BR /&gt;
sampletype=raw&lt;BR /&gt;
splunkUser = rahuld&lt;BR /&gt;
splunkPass = ########&lt;BR /&gt;
timeMultiple = 600&lt;BR /&gt;
backfill = -10m&lt;BR /&gt;
backfillSearch = index=demo source=test2.raw&lt;BR /&gt;
outputMode = splunkstream&lt;BR /&gt;
token.0.token = \d{4}-\d{2}-\d{2}T\d{2}.\d{2}.\d{2}&lt;BR /&gt;
token.0.replacementType = replaytimestamp&lt;BR /&gt;
token.0.replacement = %Y-%m-%dT%H:%M:%S&lt;BR /&gt;
token.1.token = @@src_ip@@&lt;BR /&gt;
token.1.replacementType = random&lt;BR /&gt;
token.1.replacement = ipv4&lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/apps/SA-Eventgen/samples&lt;BR /&gt;
[sample.tutorial1]&lt;BR /&gt;
index,host,source,sourcetype,"_raw"&lt;BR /&gt;
"main","csharp-mbp15.local","/Applications/splunk/var/log/splunk/metrics.log",splunkd,"09-15-2012 22:22:18.226 INFO  Metrics - group=mpool, max_used_interval=11259, max_used=95646, avg_rsv=251, capacity=268435456, used=0"&lt;BR /&gt;
"main","csharp-mbp15.local","/Applications/splunk/var/log/splunk/metrics.log",splunkd,"09-15-2012 22:22:18.226 INFO  Metrics - group=pipeline, name=fschangemanager, processor=fschangemanager, cpu_seconds=0.000000, executes=1, cumulative_hits=506"&lt;/P&gt;

&lt;P&gt;[test]&lt;BR /&gt;
index,host,source,sourcetype&lt;BR /&gt;
"main","mypc","mysource","rahul_test"&lt;/P&gt;

&lt;P&gt;[test2.raw]&lt;BR /&gt;
{"timestamp":"2015-09-04T15:45:00.454143Z","src_ip":"@@src_ip@@","comment":"web click #1"}&lt;BR /&gt;
{"timestamp":"2015-09-04T15:46:01.454143Z","src_ip":"@@src_ip@@","comment":"web click #2"}&lt;BR /&gt;
{"timestamp":"2015-09-04T15:47:02.454143Z","src_ip":"@@src_ip@@","comment":"web click #3"}&lt;BR /&gt;
{"timestamp":"2015-09-04T15:48:03.454143Z","src_ip":"@@src_ip@@","comment":"web click #4"}&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:11:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Eventgen-is-giving-error/m-p/409232#M6184</guid>
      <dc:creator>rahulhoney</dc:creator>
      <dc:date>2020-09-30T00:11:05Z</dc:date>
    </item>
  </channel>
</rss>

