<?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: How to train Splunk to learn my timestamps? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422437#M74228</link>
    <description>&lt;P&gt;Ah, I misspoke...subseconds are almost always "000" when they are there, but sometimes they aren't there at all.&lt;/P&gt;</description>
    <pubDate>Tue, 29 May 2018 14:01:32 GMT</pubDate>
    <dc:creator>gregbo</dc:creator>
    <dc:date>2018-05-29T14:01:32Z</dc:date>
    <item>
      <title>How to train Splunk to learn my timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422428#M74219</link>
      <description>&lt;P&gt;I'm trying to use splunk train to learn my timestamps so I can put them in a datetime.xml file, and it won't even try. My timestamps look like: 20180529132292003-0700 and 20180529132292-0700&lt;/P&gt;

&lt;H2&gt;All it says is:&lt;/H2&gt;

&lt;H2&gt;Interactively learning date formats.&lt;/H2&gt;

&lt;P&gt;Skipping unpromissing line 1.&lt;BR /&gt;
Skipping unpromissing line 2.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 11:36:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422428#M74219</guid>
      <dc:creator>gregbo</dc:creator>
      <dc:date>2018-05-29T11:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to train Splunk to learn my timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422429#M74220</link>
      <description>&lt;P&gt;Why trying to train and not just specify the format explicitely with TIME_FORMAT?&lt;/P&gt;

&lt;P&gt;As also discussed in your other question here: &lt;A href="https://answers.splunk.com/answers/660301/why-arent-timestamps-being-recognized-consistently.html"&gt;https://answers.splunk.com/answers/660301/why-arent-timestamps-being-recognized-consistently.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;PS: 20180529132292003-0700 is a strange timestamp. Based on your previous explanation, this has 92 as the seconds, which cannot be correct...&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 12:31:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422429#M74220</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-29T12:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to train Splunk to learn my timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422430#M74221</link>
      <description>&lt;P&gt;My guess would be that, because of the lack of any seperators, it doesn't see a way to actually extract anything meaningful out of it. For a human, the timestamp is rather easy to read, but not for software. I'd try to either change the timestamps to contain seperators, or, just do this manually, by using either TIME_FORMAT or building a datetime.xml yourself.&lt;/P&gt;

&lt;P&gt;However, I tried to build a timestamp extraction for this - and the format is pretty weird.&lt;/P&gt;

&lt;P&gt;Using &lt;CODE&gt;20180529132292003-0700&lt;/CODE&gt;, I'd split it like &lt;CODE&gt;2018-05-29 13:22&lt;/CODE&gt;, but after that - what is 92003 supposed to mean? Is it 0.92003 minutes? Or is this just a bad example?&lt;/P&gt;

&lt;P&gt;You see, if a human has difficulties to get a proper timestamp out of it... how should Splunk do this? &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Hope that helps - if it does I'd be happy if you would upvote/accept this answer, so others could profit from it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 12:40:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422430#M74221</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-29T12:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to train Splunk to learn my timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422431#M74222</link>
      <description>&lt;P&gt;That was a typo.  I changed it and it still didn't work.  I'm trying to train because the data has timestamps with two different formats, and multiple posts made it sound like using datetime.xml would be "easy".  I can't change the format of the timestamp in the data, it's an international standard for this type of data&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 12:47:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422431#M74222</guid>
      <dc:creator>gregbo</dc:creator>
      <dc:date>2018-05-29T12:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to train Splunk to learn my timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422432#M74223</link>
      <description>&lt;P&gt;I can't change the format of the timestamp, it's an international standard for the data I'm trying to pull in.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 12:48:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422432#M74223</guid>
      <dc:creator>gregbo</dc:creator>
      <dc:date>2018-05-29T12:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to train Splunk to learn my timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422433#M74224</link>
      <description>&lt;P&gt;No options to collect those 2 different formats separately?&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 12:56:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422433#M74224</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-05-29T12:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to train Splunk to learn my timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422434#M74225</link>
      <description>&lt;P&gt;And the same data stream sometimes has subseconds, and sometimes has not? (like the &lt;CODE&gt;003&lt;/CODE&gt; part in your example above)&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 12:59:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422434#M74225</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-29T12:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to train Splunk to learn my timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422435#M74226</link>
      <description>&lt;P&gt;They usually have subseconds of "000".  &lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 13:10:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422435#M74226</guid>
      <dc:creator>gregbo</dc:creator>
      <dc:date>2018-05-29T13:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to train Splunk to learn my timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422436#M74227</link>
      <description>&lt;P&gt;Okay, if subseconds are always present, you could simply use &lt;CODE&gt;TIME_FORMAT = %Y%m%d%H%M%S%3N%z&lt;/CODE&gt;. Splunk actually recognizes your timestamp without any additional training, but for some reason ignores the timezone information...&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 13:54:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422436#M74227</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-29T13:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to train Splunk to learn my timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422437#M74228</link>
      <description>&lt;P&gt;Ah, I misspoke...subseconds are almost always "000" when they are there, but sometimes they aren't there at all.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 14:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422437#M74228</guid>
      <dc:creator>gregbo</dc:creator>
      <dc:date>2018-05-29T14:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to train Splunk to learn my timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422438#M74229</link>
      <description>&lt;P&gt;Mhh, that's pretty shitty... any chance to get that fixed with the log source? Inconsistent timestamps might actually force you to go back to datetime.xml...&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 14:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422438#M74229</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-29T14:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to train Splunk to learn my timestamps?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422439#M74230</link>
      <description>&lt;P&gt;Next to no chance...I'll probably have to try datetime.xml, which hasn't worked at all the last couple times I tried it...oh well&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 15:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-train-Splunk-to-learn-my-timestamps/m-p/422439#M74230</guid>
      <dc:creator>gregbo</dc:creator>
      <dc:date>2018-05-29T15:00:43Z</dc:date>
    </item>
  </channel>
</rss>

