<?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 Time format  having pipe &amp;quot;|&amp;quot; in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33841#M6081</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;

&lt;P&gt;I am having trouble recognizing time format of %Y%m%d|%H%M%S (e.g. |20130813|235858 )&lt;/P&gt;

&lt;P&gt;I have tried using the following settings in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = \| 
TIME_FORMAT = %Y%m%d\|%H%M%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = \| 
TIME_FORMAT = %Y%m%d|%H%M%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;both not working.&lt;/P&gt;

&lt;P&gt;Can anyone help me out here please.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Aug 2013 01:01:28 GMT</pubDate>
    <dc:creator>saad_siddiqi</dc:creator>
    <dc:date>2013-08-14T01:01:28Z</dc:date>
    <item>
      <title>Time format  having pipe "|"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33841#M6081</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;

&lt;P&gt;I am having trouble recognizing time format of %Y%m%d|%H%M%S (e.g. |20130813|235858 )&lt;/P&gt;

&lt;P&gt;I have tried using the following settings in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = \| 
TIME_FORMAT = %Y%m%d\|%H%M%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = \| 
TIME_FORMAT = %Y%m%d|%H%M%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;both not working.&lt;/P&gt;

&lt;P&gt;Can anyone help me out here please.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 01:01:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33841#M6081</guid>
      <dc:creator>saad_siddiqi</dc:creator>
      <dc:date>2013-08-14T01:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Time format  having pipe "|"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33842#M6082</link>
      <description>&lt;P&gt;Does the log starts with the time field? Could you paste a little more of the log?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 05:59:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33842#M6082</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-08-14T05:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Time format  having pipe "|"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33843#M6083</link>
      <description>&lt;P&gt;are there any other pipes before the one preceding the timestamp? Please post a few sample events.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 07:01:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33843#M6083</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-14T07:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Time format  having pipe "|"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33844#M6084</link>
      <description>&lt;P&gt;Thank you for looking into this&lt;/P&gt;

&lt;P&gt;Below are some events&lt;BR /&gt;
|CALLCONTROL|VMSIVR2|107|20130814|130224|130230|I&lt;BR /&gt;
|CALLCONTROL|VMSIVR2|183|20130814|130224|130230|I&lt;BR /&gt;
|CALLCONTROL|VMSIVR2|99|20130814|130124|130230|I&lt;BR /&gt;
|PROVI|APS2|20130814|130240|&lt;BR /&gt;
|PROVI|APS2|20130814|130253| &lt;BR /&gt;
|SMSC|VMSIVR2||20130814|125501|&lt;BR /&gt;
|SMSC|VMSIVR2||20130814|125511&lt;BR /&gt;
|20130814|125959|202|12342|&lt;BR /&gt;
|20130814|134950|203|12451|&lt;/P&gt;

&lt;P&gt;Please note that the timestamp is moving here and there since this log is getting combined from various sources.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 09:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33844#M6084</guid>
      <dc:creator>saad_siddiqi</dc:creator>
      <dc:date>2013-08-14T09:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Time format  having pipe "|"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33845#M6085</link>
      <description>&lt;P&gt;The docs on TIME_PREFIX can give some explanation;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;TIME_PREFIX = &amp;lt;regular expression&amp;gt;&lt;BR /&gt;
* If set, splunk scans the event text for a match for this regex in event text before attempting &lt;BR /&gt;
  to extract a timestamp.&lt;BR /&gt;
* The timestamping algorithm only looks for a timestamp&lt;/CODE&gt; &lt;STRONG&gt;in the text following the end of the &lt;BR /&gt;
  first regex match&lt;/STRONG&gt;&lt;CODE&gt;.&lt;BR /&gt;
* For example, if TIME_PREFIX is set to "abc123", only text following the first occurrence of the &lt;BR /&gt;
  text abc123 will be used for timestamp extraction&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Perhaps something like this could work; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = \|(?=\d{8})
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Haven't tried it in Splunk, but it works in the excellent online regex tester found at &lt;/P&gt;

&lt;P&gt;&lt;A href="http://gskinner.com/RegExr/"&gt;http://gskinner.com/RegExr/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 11:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33845#M6085</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-14T11:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Time format  having pipe "|"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33846#M6086</link>
      <description>&lt;P&gt;Yes working very well.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;NO_BINARY_CHECK=1&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_FORMAT=%Y%m%d|%H%M%S&lt;BR /&gt;
TIME_PREFIX=\|(?=\d{8})&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 14:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Time-format-having-pipe-quot-quot/m-p/33846#M6086</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-08-14T14:08:49Z</dc:date>
    </item>
  </channel>
</rss>

