<?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 configure props.conf TIME_FORMAT to recognize 2 variations of a timestamp? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-TIME-FORMAT-to-recognize-2/m-p/284708#M54380</link>
    <description>&lt;P&gt;Exactly what i already built. Very useful. You can also recycle some stuff of the original datetime.xml&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 02:20:32 GMT</pubDate>
    <dc:creator>effem</dc:creator>
    <dc:date>2018-06-07T02:20:32Z</dc:date>
    <item>
      <title>How to configure props.conf TIME_FORMAT to recognize 2 variations of a timestamp?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-TIME-FORMAT-to-recognize-2/m-p/284704#M54376</link>
      <description>&lt;P&gt;I have a log that has time expressed like this &lt;CODE&gt;20151218111015&lt;/CODE&gt;. So that would be December 18th, 2015 11:10:15. However, sometimes it doesn't have the seconds. So, the props.conf TIME_FORMAT could be either &lt;CODE&gt;%Y%m%d%H%M%S&lt;/CODE&gt; or &lt;CODE&gt;%Y%m%d%H%M&lt;/CODE&gt;. If I put in the first, then the events without seconds don't get the correct time ... they just get the time that the event was indexed. If I put in the second, then none of my events have seconds. Is there any way around this? I would like it to keep the seconds if they exist.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 19:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-TIME-FORMAT-to-recognize-2/m-p/284704#M54376</guid>
      <dc:creator>dstuder</dc:creator>
      <dc:date>2015-12-18T19:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf TIME_FORMAT to recognize 2 variations of a timestamp?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-TIME-FORMAT-to-recognize-2/m-p/284705#M54377</link>
      <description>&lt;P&gt;It's a tricky one. If you have any control over the log format try to fix that first. It should be consistent.&lt;/P&gt;

&lt;P&gt;If that's not possible then I would go for the one without seconds in your universal fw and then capture the seconds with regex and overwrite the timestamp before indexing. I can't remember whether this is possible or not for the timestamp but it's definitely doable for other meta fields such as host or source type. &lt;/P&gt;

&lt;P&gt;Keep in mind this is going to add an unnecessary load in your indexer or heavy forwarder but if your time is not consistent you don't have that many options I'm afraid. &lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
J&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 20:00:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-TIME-FORMAT-to-recognize-2/m-p/284705#M54377</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2015-12-18T20:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf TIME_FORMAT to recognize 2 variations of a timestamp?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-TIME-FORMAT-to-recognize-2/m-p/284706#M54378</link>
      <description>&lt;P&gt;See if this post answers your question&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.function1.com/2013/01/oh-no-splunking-log-files-with-multiple-formats-no-problem"&gt;http://www.function1.com/2013/01/oh-no-splunking-log-files-with-multiple-formats-no-problem&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2015 20:03:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-TIME-FORMAT-to-recognize-2/m-p/284706#M54378</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2015-12-18T20:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf TIME_FORMAT to recognize 2 variations of a timestamp?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-TIME-FORMAT-to-recognize-2/m-p/284707#M54379</link>
      <description>&lt;P&gt;Already answered here: &lt;A href="https://answers.splunk.com/answering/11189/view.html" target="_blank"&gt;https://answers.splunk.com/answering/11189/view.html&lt;/A&gt;&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;If there are multiple timestamps, you can use a custom DATETIME_CONFIG instead of specifying TIME_FORMAT and TIME_PREFIX.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:28:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-TIME-FORMAT-to-recognize-2/m-p/284707#M54379</guid>
      <dc:creator>goelli</dc:creator>
      <dc:date>2020-09-29T16:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure props.conf TIME_FORMAT to recognize 2 variations of a timestamp?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-TIME-FORMAT-to-recognize-2/m-p/284708#M54380</link>
      <description>&lt;P&gt;Exactly what i already built. Very useful. You can also recycle some stuff of the original datetime.xml&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 02:20:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-props-conf-TIME-FORMAT-to-recognize-2/m-p/284708#M54380</guid>
      <dc:creator>effem</dc:creator>
      <dc:date>2018-06-07T02:20:32Z</dc:date>
    </item>
  </channel>
</rss>

