<?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: Different date format in same log in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Different-date-format-in-same-log/m-p/37569#M8406</link>
    <description>&lt;P&gt;You can't use &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; in this example, because that assumes there is a single timestamp format within the file.  &lt;/P&gt;

&lt;P&gt;It's possible that both of these formats are in &lt;CODE&gt;datetime.xml&lt;/CODE&gt; already, which would let Splunk parse them without help.  If not, you could make a custom &lt;CODE&gt;datetime.xml&lt;/CODE&gt; that has both of these formats in it.  That should let the timestamp parser differentiate between the two and parse appropriately.  &lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.2.2/Data/TrainSplunkToRecognizeATimestamp#Createacustomdatetimexml"&gt;http://www.splunk.com/base/Documentation/4.2.2/Data/TrainSplunkToRecognizeATimestamp#Createacustomdatetimexml&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2011 15:57:21 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2011-07-01T15:57:21Z</dc:date>
    <item>
      <title>Different date format in same log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-date-format-in-same-log/m-p/37567#M8404</link>
      <description>&lt;P&gt;How can I pars this log with different date format?&lt;/P&gt;

&lt;P&gt;data.log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2011.06.30 16:06:11 data data data data bla bla
30.06.2011. 16:06:10 data data data bla bla data
...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Jul 2011 15:10:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-date-format-in-same-log/m-p/37567#M8404</guid>
      <dc:creator>pero1234</dc:creator>
      <dc:date>2011-07-01T15:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Different date format in same log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-date-format-in-same-log/m-p/37568#M8405</link>
      <description>&lt;P&gt;Could you edit your question to clarify what you'd like to see in terms of a date format? Which of the two formats here would you like to include/exclude?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2011 15:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-date-format-in-same-log/m-p/37568#M8405</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-07-01T15:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Different date format in same log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-date-format-in-same-log/m-p/37569#M8406</link>
      <description>&lt;P&gt;You can't use &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; in this example, because that assumes there is a single timestamp format within the file.  &lt;/P&gt;

&lt;P&gt;It's possible that both of these formats are in &lt;CODE&gt;datetime.xml&lt;/CODE&gt; already, which would let Splunk parse them without help.  If not, you could make a custom &lt;CODE&gt;datetime.xml&lt;/CODE&gt; that has both of these formats in it.  That should let the timestamp parser differentiate between the two and parse appropriately.  &lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.2.2/Data/TrainSplunkToRecognizeATimestamp#Createacustomdatetimexml"&gt;http://www.splunk.com/base/Documentation/4.2.2/Data/TrainSplunkToRecognizeATimestamp#Createacustomdatetimexml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2011 15:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-date-format-in-same-log/m-p/37569#M8406</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-07-01T15:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Different date format in same log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-date-format-in-same-log/m-p/37570#M8407</link>
      <description>&lt;P&gt;I need include both date format. I need include everything in this log.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2011 19:52:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-date-format-in-same-log/m-p/37570#M8407</guid>
      <dc:creator>pero1234</dc:creator>
      <dc:date>2011-07-01T19:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Different date format in same log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-date-format-in-same-log/m-p/37571#M8408</link>
      <description>&lt;P&gt;THX for help. It seems that splunk correctly recognize and separate events without define sourcetype.&lt;BR /&gt;
I try to define sourcetype=datalog and in props.conf define just stanza name without any options and works!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2011 20:02:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-date-format-in-same-log/m-p/37571#M8408</guid>
      <dc:creator>pero1234</dc:creator>
      <dc:date>2011-07-01T20:02:23Z</dc:date>
    </item>
  </channel>
</rss>

