<?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: Splunk randomly extracts 2 types of timestamp formats! in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-randomly-extracts-2-types-of-timestamp-formats/m-p/32445#M5770</link>
    <description>&lt;P&gt;The &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; should/must also include the opening square bracket. I think that until now, your Splunk has been able to deduce from numbers alone that e.g. 25/4/2013 cannot be in %m/%d/%Y format. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^\[
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2013 07:50:01 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-05-14T07:50:01Z</dc:date>
    <item>
      <title>Splunk randomly extracts 2 types of timestamp formats!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-randomly-extracts-2-types-of-timestamp-formats/m-p/32444#M5769</link>
      <description>&lt;P&gt;I have no idea what I missing here, just no idea and I have to admit, its killing me inside, I have been stuck on this for 2 weeks! &lt;/P&gt;

&lt;P&gt;for some random reason, Splunk decides to index all my timestamps in Australian Format (Which is what I want!), but decides to index a small number of them in American format (even though they're from the same Log!).&lt;/P&gt;

&lt;P&gt;Here is a copy of the sourcetype stanza in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %d/%m/%Y %H:%M:%S.%3N
TZ = Australia/Victoria
TIME_PREFIX = ^
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And here is a copy of log Im ingesting:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;What Splunk Gets:&lt;/STRONG&gt; &lt;CODE&gt;05/01/2013 11:19:37.222&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;What the log really states:&lt;/STRONG&gt; &lt;CODE&gt;[01/05/2013 11:19:37.222 INFO ] - [AuditLogger] - SessionId=#####; UserId=#####; Event=#####; MSISDN=#######&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And please note, it only does this for a small number of events like the above, the other timestamps are extracted in the correct format!, all the other events look exactly like the one I pasted above, so I have no idea &lt;STRONG&gt;WHAT TO DO NEXT!&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Please all I want is for my logs to be indexed in Australian format, Plz&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2013 07:09:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-randomly-extracts-2-types-of-timestamp-formats/m-p/32444#M5769</guid>
      <dc:creator>Dark_Ichigo</dc:creator>
      <dc:date>2013-05-14T07:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk randomly extracts 2 types of timestamp formats!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-randomly-extracts-2-types-of-timestamp-formats/m-p/32445#M5770</link>
      <description>&lt;P&gt;The &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; should/must also include the opening square bracket. I think that until now, your Splunk has been able to deduce from numbers alone that e.g. 25/4/2013 cannot be in %m/%d/%Y format. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^\[
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2013 07:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-randomly-extracts-2-types-of-timestamp-formats/m-p/32445#M5770</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-05-14T07:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk randomly extracts 2 types of timestamp formats!</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-randomly-extracts-2-types-of-timestamp-formats/m-p/32446#M5771</link>
      <description>&lt;P&gt;Thanks, that was one of the issues, the other one was that someone had names the stanza in props.conf to the index name instead of the Sourcetype name, now its fixed &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2013 01:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-randomly-extracts-2-types-of-timestamp-formats/m-p/32446#M5771</guid>
      <dc:creator>Dark_Ichigo</dc:creator>
      <dc:date>2013-05-15T01:17:06Z</dc:date>
    </item>
  </channel>
</rss>

