<?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: Indexer not parsing  12 hour timestamp format in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-not-parsing-12-hour-timestamp-format/m-p/97364#M20302</link>
    <description>&lt;P&gt;Figured out the problem, the timestamp format in the log file was incorrect (It didn't had AM/PM). Chnaged the timestamp format to 24 hours and it works fine now.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jul 2012 13:05:23 GMT</pubDate>
    <dc:creator>parth_jec</dc:creator>
    <dc:date>2012-07-18T13:05:23Z</dc:date>
    <item>
      <title>Indexer not parsing  12 hour timestamp format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-not-parsing-12-hour-timestamp-format/m-p/97360#M20298</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I am using Universal forwarder (splunkforwarder-4.3.2-123586-x64-release) to forward multiple logs to the indexer (version 4.2.4, build 110225 ). For a particular log, I cannot see the logs indexed after 12:59 every day. For this log the timestamp format is a 12 hour format, Ex: 2012-07-12 01:00:16. However, all the other logs are forwarded properly from the same frowarder and they are using timestamp of 24 hour format, Ex: 2012-07-12 13:05:56.&lt;/P&gt;

&lt;P&gt;How can I fix this?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2012 18:58:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexer-not-parsing-12-hour-timestamp-format/m-p/97360#M20298</guid>
      <dc:creator>parth_jec</dc:creator>
      <dc:date>2012-07-12T18:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer not parsing  12 hour timestamp format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-not-parsing-12-hour-timestamp-format/m-p/97361#M20299</link>
      <description>&lt;P&gt;It sounds like you need to configure time format explicitly. If you did an all time,real time search for the source in question, I am guessing you'd continue to see data, but it would be timestamped incorrectly. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Use the TIME_FORMAT attribute in props.conf to configure timestamp parsing. This attribute takes a strptime() format string, which it uses to extract the timestamp.

Splunk implements an enhanced version of Unix strptime() that supports additional formats, allowing for microsecond, millisecond, any time width format, and some additional time formats for compatibility. The additional formats are listed in this table: 

%I  For hours on a 12-hour clock format. If %I appears after %S or %s (like "%H:%M:%S.%l"), it takes on the log4cpp meaning of milliseconds. 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jul 2012 19:55:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexer-not-parsing-12-hour-timestamp-format/m-p/97361#M20299</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-07-12T19:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer not parsing  12 hour timestamp format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-not-parsing-12-hour-timestamp-format/m-p/97362#M20300</link>
      <description>&lt;P&gt;I followed the link and created a props.conf in the local directory.&lt;/P&gt;

&lt;P&gt;-props.conf-&lt;BR /&gt;
[source::&lt;PATH to="" log="" file="" with="" 12="" hour="" timestamp="" format=""&gt;]&lt;BR /&gt;
TIME_PREFIX = INFO &lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:%S.%I&lt;/PATH&gt;&lt;/P&gt;

&lt;P&gt;The log file event are like: &lt;BR /&gt;
INFO 2012-06-25 04:11:00 – ToAdmin.....&lt;/P&gt;

&lt;P&gt;I have added one blank space after INFO in the TIME_PREFIX but still can't see the logs.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Which logs can I look for in the splunk to debug this?&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Can I use multiple prefixes separated by '|' something like TIME_PREFIX= INFO |WARN  etc?&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Can you pls explain what log4cpp is and how would it impact the timestamp parsing?&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:04:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexer-not-parsing-12-hour-timestamp-format/m-p/97362#M20300</guid>
      <dc:creator>parth_jec</dc:creator>
      <dc:date>2020-09-28T12:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer not parsing  12 hour timestamp format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-not-parsing-12-hour-timestamp-format/m-p/97363#M20301</link>
      <description>&lt;P&gt;What are your search time constraints? If you do an all time, real time search for the source of these events, do you see any data?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2012 15:29:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexer-not-parsing-12-hour-timestamp-format/m-p/97363#M20301</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2012-07-13T15:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Indexer not parsing  12 hour timestamp format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexer-not-parsing-12-hour-timestamp-format/m-p/97364#M20302</link>
      <description>&lt;P&gt;Figured out the problem, the timestamp format in the log file was incorrect (It didn't had AM/PM). Chnaged the timestamp format to 24 hours and it works fine now.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2012 13:05:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexer-not-parsing-12-hour-timestamp-format/m-p/97364#M20302</guid>
      <dc:creator>parth_jec</dc:creator>
      <dc:date>2012-07-18T13:05:23Z</dc:date>
    </item>
  </channel>
</rss>

