<?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: Props.conf and time_format, what am I missing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-and-time-format-what-am-I-missing/m-p/65256#M13099</link>
    <description>&lt;P&gt;I would assume that &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 22&lt;/CODE&gt; should be enough. How is Splunk getting the date wrong, exactly? Could you show us an example?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:50:50 GMT</pubDate>
    <dc:creator>hexx</dc:creator>
    <dc:date>2020-09-28T09:50:50Z</dc:date>
    <item>
      <title>Props.conf and time_format, what am I missing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-and-time-format-what-am-I-missing/m-p/65255#M13098</link>
      <description>&lt;P&gt;I'm missing something, not sure what...I've got some GMT timestamped logs that Splunk didn't magically guess correctly for timezone/date format, so I figured I'd give it a helping hand in props.conf.&lt;/P&gt;

&lt;P&gt;My events look like this:&lt;/P&gt;

&lt;P&gt;20110825 000702531+0000 hostname01 daemon 13020 1594146607 1594146607 Note;FoobleWibble(50/6) user=&lt;A href="mailto:name@domain.com" target="_blank"&gt;name@domain.com&lt;/A&gt;:cmd=run &lt;APP&gt;:fromhost=1.2.3.4&lt;/APP&gt;&lt;/P&gt;

&lt;P&gt;And I've added the following into props.conf for the directory where the files are located:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;
[source::/import/logs/files]
MAX_TIMESTAMP_LOOKAHEAD = 25
TIME_FORMAT = %Y%m%d %H%M%S%3N%z
&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;GNU date seems to interpret that correctly, and from the reading I've seen on strptime on linux, this should be right, but it just doesn't seem to get it.&lt;/P&gt;

&lt;P&gt;Do I really need a transforms.conf entry for this?  Or time_prefix?  Since the timestamp is at the start of the line, I was thinking the time_format would be enough.&lt;/P&gt;

&lt;P&gt;Am I missing something obvious?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-and-time-format-what-am-I-missing/m-p/65255#M13098</guid>
      <dc:creator>howyagoin</dc:creator>
      <dc:date>2020-09-28T09:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf and time_format, what am I missing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-and-time-format-what-am-I-missing/m-p/65256#M13099</link>
      <description>&lt;P&gt;I would assume that &lt;CODE&gt;MAX_TIMESTAMP_LOOKAHEAD = 22&lt;/CODE&gt; should be enough. How is Splunk getting the date wrong, exactly? Could you show us an example?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:50:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-and-time-format-what-am-I-missing/m-p/65256#M13099</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2020-09-28T09:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf and time_format, what am I missing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-and-time-format-what-am-I-missing/m-p/65257#M13100</link>
      <description>&lt;P&gt;Yeah:&lt;/P&gt;

&lt;PRE&gt;
1   9/8/11 1:35:33.000 PM   20110907 185959292+0000 blah blah 22415 691265462 691265462 Note;blah2
2   9/8/11 1:35:33.000 PM   20110907 185957218+0000 blah blah 22415 691265200 691265200 Note;blah123
3   9/8/11 1:35:33.000 PM   20110907 185956595+0000 blah blah 22415 691265275 691265275 Note;blah123123
&lt;/PRE&gt;

&lt;P&gt;From a timechart point of view, everything is timestamped at the moment of reading the file.&lt;/P&gt;

&lt;P&gt;Log errors:&lt;BR /&gt;
AggregatorMiningProcessor - Too many events (400K) with the same timestamp: incrementing timestamps 4 seconds into the future to insure retrievability&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2011 04:00:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-and-time-format-what-am-I-missing/m-p/65257#M13100</guid>
      <dc:creator>howyagoin</dc:creator>
      <dc:date>2011-09-08T04:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Props.conf and time_format, what am I missing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Props-conf-and-time-format-what-am-I-missing/m-p/65258#M13101</link>
      <description>&lt;P&gt;First of all, I would not use &lt;CODE&gt;source&lt;/CODE&gt; if at all possible; I have always used &lt;CODE&gt;sourcetype&lt;/CODE&gt; for this.  Secondly, your timestamps are 22 characters long, not 25.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[MySourceType]
MAX_TIMESTAMP_LOOKAHEAD = 22
TIME_FORMAT = %Y%m%d %H%M%S%3N%z
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, you need to make sure that this is deployed to your &lt;CODE&gt;indexers&lt;/CODE&gt;, which is where timestamping occurs, not to your &lt;CODE&gt;forwarder&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2015 13:23:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Props-conf-and-time-format-what-am-I-missing/m-p/65258#M13101</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-29T13:23:27Z</dc:date>
    </item>
  </channel>
</rss>

