<?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 Re: Event gen: timestamp for epoch time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/636689#M108902</link>
    <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;Did you get an answer to this?&lt;/P&gt;&lt;P&gt;I am also trying to generate data in epoch, but not sure how to do it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be great thanks&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
    <pubDate>Thu, 30 Mar 2023 11:56:24 GMT</pubDate>
    <dc:creator>robertlynch2020</dc:creator>
    <dc:date>2023-03-30T11:56:24Z</dc:date>
    <item>
      <title>Event gen: timestamp for epoch time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/528540#M108893</link>
      <description>&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;I would like to ask a doubt:&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;for the following time format, we can use the following timestamp, just for an example&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;time format:2020-11-09 11:20:35&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;timestamp:&lt;/SPAN&gt;&lt;SPAN&gt;%Y-%m-%d %H:%M:%S&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;here is my doubt&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;for the following 13 digit epoch time format which timestamp can we use?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;time format:1589479343000&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;SPAN&gt;timestamp:?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;working on the Eventgen app to generate the 13 digit epoch time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advance&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Mar 2023 14:40:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/528540#M108893</guid>
      <dc:creator>Nith</dc:creator>
      <dc:date>2023-03-30T14:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Event gen: timestamp for epoch time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/528914#M108894</link>
      <description>&lt;P&gt;In general epoch time can be converted using strftime and any time format&lt;/P&gt;&lt;P&gt;e.g&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;formatted=strftime(1589479343000,"%Y-%m-%d %H:%M:%S")&lt;/LI-CODE&gt;&lt;P&gt;Does that work ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 04:05:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/528914#M108894</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-11-11T04:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Event gen: timestamp for epoch time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/528928#M108895</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136781"&gt;@renjith_nair&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you for your reply,&lt;/P&gt;&lt;P&gt;Actually, I'm not trying to convert the epoch time. I need it as in the epoch time format.&lt;/P&gt;&lt;P&gt;I'd like to generate epoch time in the same format(1589479343000) so I just need the timestamp for that specified epoch time(if it is possible).&lt;/P&gt;&lt;P&gt;I'd like to generate multiple events in the Eventgen app, so I need the timestamp to generate epoch time.&lt;/P&gt;&lt;P&gt;not the conversion of any time format.&lt;/P&gt;&lt;P&gt;I have a data like this :"$date": 1589530298000&lt;/P&gt;&lt;P&gt;to generate more data in Eventgen App I used the token like this&lt;/P&gt;&lt;P&gt;token.2.token = "\$date":([^}]+)&lt;BR /&gt;token.2.replacementType = timestamp&lt;BR /&gt;token.2.replacement = ?&lt;/P&gt;&lt;P&gt;what should I add in the&amp;nbsp;token.2.replacement=&amp;nbsp; to get the epochtime.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 08:09:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/528928#M108895</guid>
      <dc:creator>Nith</dc:creator>
      <dc:date>2020-11-11T08:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Event gen: timestamp for epoch time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/528980#M108896</link>
      <description>&lt;P&gt;Sorry, not sure if I have got it correctly.&lt;/P&gt;&lt;P&gt;So you have an epoch as part of your data which is in the format&amp;nbsp;&lt;SPAN&gt;"$date": 1589530298000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Do you want to replace it with or convert? If you do not want to replace , just dont add anything to the replacement.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;token.&amp;lt;n&amp;gt;.replacement = &amp;lt;string&amp;gt; | &amp;lt;strptime&amp;gt; | ["list","of","strptime"] | guid | ipv4 | ipv6 | mac | integer[&amp;lt;start&amp;gt;:&amp;lt;end&amp;gt;] | float[&amp;lt;start&amp;gt;:&amp;lt;end&amp;gt;] | string(&amp;lt;i&amp;gt;) | hex(&amp;lt;i&amp;gt;) | list["list", "of", "values"] | &amp;lt;replacement file name&amp;gt; | &amp;lt;replacement file name&amp;gt;:&amp;lt;column number&amp;gt; | &amp;lt;integer&amp;gt;
* 'n' is a number starting at 0, and increasing by 1. Stop looking at the filter when 'n' breaks.
* For &amp;lt;string&amp;gt;, the token will be replaced with the value specified.
* For &amp;lt;strptime&amp;gt;, a strptime formatted string to replace the timestamp with
* For ["list","of","strptime"], only used with replaytimestamp, a JSON formatted list of strptime
  formats to try. Will find the replace with the same format which matches the replayed timestamp.
* For guid, the token will be replaced with a random GUID value.
* For ipv4, the token will be replaced with a random valid IPv4 Address (i.e. 10.10.200.1).
* For ipv6, the token will be replaced with a random valid IPv6 Address (i.e. c436:4a57:5dea:1035:7194:eebb:a210:6361).
* For mac, the token will be replaced with a random valid MAC Address (i.e. 6e:0c:51:c6:c6:3a).
* For integer[&amp;lt;start&amp;gt;:&amp;lt;end&amp;gt;], the token will be replaced with a random integer between 
  start and end values where &amp;lt;start&amp;gt; is a number greater than 0 
  and &amp;lt;end&amp;gt; is a number greater than 0 and greater than or equal to &amp;lt;start&amp;gt;. If rated,
  will be multiplied times hourOfDayRate and dayOfWeekRate.
* For float[&amp;lt;start&amp;gt;:&amp;lt;end&amp;gt;], the token will be replaced with a random float between
  start and end values where &amp;lt;end&amp;gt; is a number greater than or equal to &amp;lt;start&amp;gt;.
  For floating point numbers, precision will be based off the precision specified
  in &amp;lt;start&amp;gt;. 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.
* For string(&amp;lt;i&amp;gt;), the token will be replaced with i number(s) of ASCII characters where 'i' is a number greater than 0.
* For hex(&amp;lt;i&amp;gt;), the token will be replaced with i number of Hexadecimal characters [0-9A-F] where 'i' is a number greater than 0.
* For list, the token will be replaced with a random member of the JSON list provided.
* For &amp;lt;replacement file name&amp;gt;, the token will be replaced with a random line in the replacement file.
  * Replacement file name should be a fully qualified path (i.e. $SPLUNK_HOME/etc/apps/windows/samples/users.list).
  * Windows separators should contain double forward slashes '\\' (i.e. $SPLUNK_HOME\\etc\\apps\\windows\\samples\\users.list).
  * Unix separators will work on Windows and vice-versa.
* Column numbers in mvfile or seqfile references are indexed at 1, meaning the first column is column 1, not 0.
* &amp;lt;integer&amp;gt; used as the seed for integerid.
* Defaults to None.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 15:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/528980#M108896</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-11-11T15:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Event gen: timestamp for epoch time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/528984#M108897</link>
      <description>&lt;P&gt;Thank you for your reply&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136781"&gt;@renjith_nair&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to replace it with the current date and time in epoch time format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 15:07:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/528984#M108897</guid>
      <dc:creator>Nith</dc:creator>
      <dc:date>2020-11-11T15:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Event gen: timestamp for epoch time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/528993#M108898</link>
      <description>&lt;P&gt;To be more specific&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136781"&gt;@renjith_nair&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've the data like this&amp;nbsp;"$date": 1589530298000&lt;/P&gt;&lt;P&gt;this is an old date epoch time&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I'm trying to replace it with the current date and time same as epoch time format.&lt;/P&gt;&lt;P&gt;for that I used the conf like this&lt;/P&gt;&lt;P&gt;token.2.token = "\$date":([^}]+)&lt;BR /&gt;token.2.replacementType = timestamp&lt;BR /&gt;token.2.replacement = I've no idea what to add here to replace the old epoch time to current date and tiime in epoch time,&lt;/P&gt;&lt;P&gt;I hope you understand.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 15:30:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/528993#M108898</guid>
      <dc:creator>Nith</dc:creator>
      <dc:date>2020-11-11T15:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Event gen: timestamp for epoch time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/529135#M108899</link>
      <description>&lt;P&gt;Looks like it depends on the earliest and latest time you configure. So if you are configuring earliest and latest to the recent time (for e. -10m -&amp;gt; now() ) and provide a strptime format, then it should replace the timestamp. Not tested though&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 13:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/529135#M108899</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-11-12T13:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Event gen: timestamp for epoch time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/529254#M108900</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/136781"&gt;@renjith_nair&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your response,&lt;/P&gt;&lt;P&gt;Actually&amp;nbsp;&lt;SPAN&gt;strptime format is the problem, I've used a format like %s but it is only providing 10 digit epoch time instead of 13, and the events are changing from raw data to JSON format automatically.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 07:57:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/529254#M108900</guid>
      <dc:creator>Nith</dc:creator>
      <dc:date>2020-11-13T07:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Event gen: timestamp for epoch time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/529498#M108901</link>
      <description>&lt;P&gt;Timestamp in data e.g.&amp;nbsp;1589530298000 resolves to a future date due to the tailing zeros. I haven't tried but can't you adjust the regex to capture only the 10 digits and convert them.&amp;nbsp; Sorry I can't think of any other methods&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 07:27:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/529498#M108901</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-11-16T07:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Event gen: timestamp for epoch time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/636689#M108902</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;Did you get an answer to this?&lt;/P&gt;&lt;P&gt;I am also trying to generate data in epoch, but not sure how to do it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be great thanks&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 11:56:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Event-gen-timestamp-for-epoch-time/m-p/636689#M108902</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2023-03-30T11:56:24Z</dc:date>
    </item>
  </channel>
</rss>

