<?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: Epoch Time - Time Stamp Assignment with Millisecs seperate in JSON in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/577104#M101939</link>
    <description>&lt;P&gt;Thanks for the thought.&amp;nbsp; A possible solution.&amp;nbsp; I'll update.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had hoped I could just get strptime to skip around the stuff between the secs part of the epoch time and the ms part,&amp;nbsp;TIME_FORMAT = %s,\"timestamp_ms\":%6N,&amp;nbsp; but that did not work -- You can put slashes colon and other punctuation in there but I guess no strings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried fixing the time stamp to a pure seconds and ms part doing a rewrite with SEDCMD, that worked to re-write the record,&amp;nbsp; but did not fix the time stamp which is determined before.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2021 17:09:26 GMT</pubDate>
    <dc:creator>jimdiconectiv</dc:creator>
    <dc:date>2021-12-02T17:09:26Z</dc:date>
    <item>
      <title>Epoch Time - Time Stamp Assignment with Millisecs seperate in JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/575527#M101733</link>
      <description>&lt;P&gt;I have some passive dns data that has time stamps that look like this in JSON logs:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;{"timestamp":"2021-10-21 16:31:01","timestamp_s":1634833861,"timestamp_ms":973448,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;So it has first conventional time stamp and then a full seconds based Unix Epoch Time Stamp in seconds followed by:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;timestamp_ms":990877&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This has the millsecs of the time only (actually microseconds).&amp;nbsp; The more convention time would have been:&lt;/P&gt;&lt;P&gt;timestamp_s":1634834347.990877&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not been able to get the time to include the millisec value included so far.&amp;nbsp; I am using a TIME_PREFIX that should skip the conventional timestamp.&amp;nbsp; &amp;nbsp;Most recently, I used SEDCMD to get the time stamp to look more normal for epoch time --- &lt;FONT face="courier new,courier"&gt;timestamp_s":1634834347.990877&lt;/FONT&gt;,&amp;nbsp; but maybe the SEDCMD only happens after the time stamp is determined.&lt;/P&gt;&lt;P&gt;I have used similar to for this.&lt;/P&gt;&lt;P&gt;TIME_PREFIX=timestamp_s":&lt;BR /&gt;TIME_FORMAT= %s.%6N&lt;/P&gt;&lt;P&gt;Any help appreciated !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 19:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/575527#M101733</guid>
      <dc:creator>jimdiconectiv</dc:creator>
      <dc:date>2021-11-18T19:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time - Time Stamp Assignment with Millisecs seperate in JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/576649#M101881</link>
      <description>&lt;P&gt;Please help !&amp;nbsp; &amp;nbsp;I normall get help after posting.&amp;nbsp; This is an important issue for us.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 19:22:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/576649#M101881</guid>
      <dc:creator>jimdiconectiv</dc:creator>
      <dc:date>2021-11-29T19:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time - Time Stamp Assignment with Millisecs seperate in JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/576944#M101911</link>
      <description>&lt;P&gt;I don't think I have previously had a post up for this long and gotten no answers.&amp;nbsp; &amp;nbsp;PLEASE !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 20:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/576944#M101911</guid>
      <dc:creator>jimdiconectiv</dc:creator>
      <dc:date>2021-12-01T20:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time - Time Stamp Assignment with Millisecs seperate in JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/576952#M101913</link>
      <description>&lt;P&gt;Hi jimmy ,&lt;BR /&gt;&lt;BR /&gt;So i think just index the data using first time stamp in temp index then write a spl to extract this info and push the new data inside your desired index .&lt;BR /&gt;&lt;BR /&gt;you can also set retention time 2-3 weeks in temp index&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 21:40:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/576952#M101913</guid>
      <dc:creator>Siddharth</dc:creator>
      <dc:date>2021-12-01T21:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time - Time Stamp Assignment with Millisecs seperate in JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/577104#M101939</link>
      <description>&lt;P&gt;Thanks for the thought.&amp;nbsp; A possible solution.&amp;nbsp; I'll update.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had hoped I could just get strptime to skip around the stuff between the secs part of the epoch time and the ms part,&amp;nbsp;TIME_FORMAT = %s,\"timestamp_ms\":%6N,&amp;nbsp; but that did not work -- You can put slashes colon and other punctuation in there but I guess no strings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried fixing the time stamp to a pure seconds and ms part doing a rewrite with SEDCMD, that worked to re-write the record,&amp;nbsp; but did not fix the time stamp which is determined before.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 17:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/577104#M101939</guid>
      <dc:creator>jimdiconectiv</dc:creator>
      <dc:date>2021-12-02T17:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Epoch Time - Time Stamp Assignment with Millisecs seperate in JSON</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/577148#M101942</link>
      <description>&lt;P&gt;TIME_PREFIX = timestamp_s\x22:&lt;BR /&gt;TIME_FORMAT = %s,\"timestamp_ms\":%6N&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 22:26:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Epoch-Time-Time-Stamp-Assignment-with-Millisecs-seperate-in-JSON/m-p/577148#M101942</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2021-12-02T22:26:38Z</dc:date>
    </item>
  </channel>
</rss>

