<?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: Parsing time failing in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-failing/m-p/40859#M7574</link>
    <description>&lt;P&gt;Try adding a TIME_PREFIX element which tells Splunk where to look for the time.&lt;/P&gt;

&lt;PRE&gt;
TIME_PREFIX = ^
TIME_FORMAT = %Y%m%d %H%M%S
&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Jul 2011 18:54:23 GMT</pubDate>
    <dc:creator>ccannon1</dc:creator>
    <dc:date>2011-07-11T18:54:23Z</dc:date>
    <item>
      <title>Parsing time failing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-failing/m-p/40858#M7573</link>
      <description>&lt;P&gt;Hi.  I have done a good amount of reading on this, and it seems to be a popular subject both in the documentation and on the Answers site.  Still, I'm rather stumped.&lt;/P&gt;

&lt;P&gt;We have logs where each line starts with a date/time stamp in the format&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YYYYmmdd HHMMSS hostname lots of other data
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;20110711 145022 myhost yadda yadda yadda
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk combines as many of these lines into one event as it can.  We have tried adding the following to Props.conf on the Indexers but have had no success.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %Y%m%d %H%M%S
TZ = US/Eastern
MAX_EVENTS=1
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also tried  TIME_FORMAT = ^%Y%m%d %H%M%S&lt;/P&gt;

&lt;P&gt;Is this likely just a regex problem?  &lt;/P&gt;

&lt;P&gt;Other elements of the props.conf stanza are honored and acted upon when the data is indexed.&lt;/P&gt;

&lt;P&gt;Given the simplicity of the timestamp and its presence at the very beginning of the line, I would think this would be easy to solve.  Do we need to look at a custom datetime.xml file?&lt;/P&gt;

&lt;P&gt;Thanks for any guidance.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2011 18:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-failing/m-p/40858#M7573</guid>
      <dc:creator>Sqig</dc:creator>
      <dc:date>2011-07-11T18:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing time failing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-failing/m-p/40859#M7574</link>
      <description>&lt;P&gt;Try adding a TIME_PREFIX element which tells Splunk where to look for the time.&lt;/P&gt;

&lt;PRE&gt;
TIME_PREFIX = ^
TIME_FORMAT = %Y%m%d %H%M%S
&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Jul 2011 18:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-failing/m-p/40859#M7574</guid>
      <dc:creator>ccannon1</dc:creator>
      <dc:date>2011-07-11T18:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing time failing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-failing/m-p/40860#M7575</link>
      <description>&lt;P&gt;Thanks for the suggestion.  At first, I thought this worked (!!) but a closer look showed that I was seeing additional results not related to the logs in quesiton.&lt;/P&gt;

&lt;P&gt;When restricting my search properly, I'm still seeing the same problem I was before. &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2011 20:01:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-failing/m-p/40860#M7575</guid>
      <dc:creator>Sqig</dc:creator>
      <dc:date>2011-07-11T20:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing time failing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-failing/m-p/40861#M7576</link>
      <description>&lt;P&gt;Your properties look right. I suppose I would question and check whether they are being applied to the incoming data.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2011 20:06:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-failing/m-p/40861#M7576</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-07-11T20:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing time failing</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-failing/m-p/40862#M7577</link>
      <description>&lt;P&gt;btool shows that the parameters described above are, in fact, being applied.  I don't know of anything else I can check.  &lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2011 21:44:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-time-failing/m-p/40862#M7577</guid>
      <dc:creator>Sqig</dc:creator>
      <dc:date>2011-07-11T21:44:28Z</dc:date>
    </item>
  </channel>
</rss>

