<?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: Time stamp extraction not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Time-stamp-extraction-not-working/m-p/104237#M21944</link>
    <description>&lt;P&gt;I used configuration like &lt;/P&gt;

&lt;P&gt;&lt;DEFINE name="_smcombdatetime" extract="day,litmonth,year,hour,minute,second,subsecond"&gt;&lt;/DEFINE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                            &amp;lt;text&amp;gt;&amp;lt;![CDATA[(?&amp;lt;![\d\.])([012]\d|3[01])(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(20\d\d|19\d\d|[901]\d(?!\d))\s\w+\s([01]\d|2[0123])\:([0-6]\d)\:([0-6]\d)]]&amp;gt;\s*&amp;lt;/text&amp;gt;

            &amp;lt;/define&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In data preview it seems to work..but when i configure to read data from files, no data is getting indexed&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2013 09:25:57 GMT</pubDate>
    <dc:creator>adityapavan18</dc:creator>
    <dc:date>2013-10-18T09:25:57Z</dc:date>
    <item>
      <title>Time stamp extraction not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-stamp-extraction-not-working/m-p/104233#M21940</link>
      <description>&lt;P&gt;I have events which start like &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;16OCT13&lt;/STRONG&gt; AAAB &lt;STRONG&gt;12:59:00&lt;/STRONG&gt; JAJAS DKDJD KDD&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;16OCT13&lt;/STRONG&gt; AABB &lt;STRONG&gt;13:00:00&lt;/STRONG&gt; AJAJA AKAJK AKA&lt;/P&gt;

&lt;P&gt;But i am not able to extract that particular timestamp for events&lt;/P&gt;

&lt;P&gt;In my props.conf i used:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;SHOULD_LINEMERGE=false&lt;/P&gt;

&lt;P&gt;TIME_PREFIX=^&lt;/P&gt;

&lt;P&gt;TIME_FORMAT=%d%b%y [A-Z]{4} %H:%M:%S&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;But doesn't seem to work. Please tell me what i am doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 14:51:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-stamp-extraction-not-working/m-p/104233#M21940</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2013-10-17T14:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Time stamp extraction not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-stamp-extraction-not-working/m-p/104234#M21941</link>
      <description>&lt;P&gt;&lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; does not accept regexes, only strptime style format&lt;/P&gt;

&lt;P&gt;In your case you'd need put the literal &lt;CODE&gt;AABB&lt;/CODE&gt; string in  &lt;CODE&gt;TIME_FORMAT=%d%b%y AABB %H:%M:%S&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Else, if the string is not known in advance, you'd probably need a custom datetime.xml &lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 17:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-stamp-extraction-not-working/m-p/104234#M21941</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2013-10-17T17:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Time stamp extraction not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-stamp-extraction-not-working/m-p/104235#M21942</link>
      <description>&lt;P&gt;oh ok ...is there any documentation on making changes in datetime.xml&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 07:17:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-stamp-extraction-not-working/m-p/104235#M21942</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2013-10-18T07:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Time stamp extraction not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-stamp-extraction-not-working/m-p/104236#M21943</link>
      <description>&lt;P&gt;&lt;A href="http://blogs.splunk.com/2009/12/02/configure-splunk-to-pull-a-date-out-of-a-non-standard-filename/"&gt;http://blogs.splunk.com/2009/12/02/configure-splunk-to-pull-a-date-out-of-a-non-standard-filename/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 07:25:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-stamp-extraction-not-working/m-p/104236#M21943</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-18T07:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Time stamp extraction not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-stamp-extraction-not-working/m-p/104237#M21944</link>
      <description>&lt;P&gt;I used configuration like &lt;/P&gt;

&lt;P&gt;&lt;DEFINE name="_smcombdatetime" extract="day,litmonth,year,hour,minute,second,subsecond"&gt;&lt;/DEFINE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;                            &amp;lt;text&amp;gt;&amp;lt;![CDATA[(?&amp;lt;![\d\.])([012]\d|3[01])(JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC)(20\d\d|19\d\d|[901]\d(?!\d))\s\w+\s([01]\d|2[0123])\:([0-6]\d)\:([0-6]\d)]]&amp;gt;\s*&amp;lt;/text&amp;gt;

            &amp;lt;/define&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In data preview it seems to work..but when i configure to read data from files, no data is getting indexed&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2013 09:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-stamp-extraction-not-working/m-p/104237#M21944</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2013-10-18T09:25:57Z</dc:date>
    </item>
  </channel>
</rss>

