<?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: Timestamp broken up by a | in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-broken-up-by-a/m-p/21116#M3122</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Edit to reflect event given in comment below:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=^(([^\|]+)?\|){16}
TIME_FORMAT=%Y%m%d|%H%M%S
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 06 Apr 2012 18:19:06 GMT</pubDate>
    <dc:creator>araitz</dc:creator>
    <dc:date>2012-04-06T18:19:06Z</dc:date>
    <item>
      <title>Timestamp broken up by a |</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-broken-up-by-a/m-p/21115#M3121</link>
      <description>&lt;P&gt;I have events in a file with fields separated by "|" (e.g. blah|blah|20120406|095040|blah|blah). &lt;/P&gt;

&lt;P&gt;Can I use this to pick out the date?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^(?:[^\|]*\|){2}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How would I combine the time?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2012 16:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-broken-up-by-a/m-p/21115#M3121</guid>
      <dc:creator>ubko</dc:creator>
      <dc:date>2012-04-06T16:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp broken up by a |</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-broken-up-by-a/m-p/21116#M3122</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Edit to reflect event given in comment below:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX=^(([^\|]+)?\|){16}
TIME_FORMAT=%Y%m%d|%H%M%S
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Apr 2012 18:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-broken-up-by-a/m-p/21116#M3122</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-04-06T18:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp broken up by a |</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-broken-up-by-a/m-p/21117#M3123</link>
      <description>&lt;P&gt;Doesn't work. Here's a sample event:&lt;/P&gt;

&lt;P&gt;10|0012028284||55351|J|H|2|1|0|N|N|0|1|15-4-01 S 5||0|20110209|154343|20110209|154343|20110209|234343|1|1|0|1|0|0|-1|-1|&lt;/P&gt;

&lt;P&gt;Here's the props.conf:&lt;/P&gt;

&lt;P&gt;[test]&lt;BR /&gt;
REPORT-test = test_fields&lt;BR /&gt;
TIME_PREFIX = ^(([^|]+)|){16}&lt;BR /&gt;
TIME_FORMAT = %Y%m%d|%H%M%S&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:38:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-broken-up-by-a/m-p/21117#M3123</guid>
      <dc:creator>ubko</dc:creator>
      <dc:date>2020-09-28T11:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp broken up by a |</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-broken-up-by-a/m-p/21118#M3124</link>
      <description>&lt;P&gt;Yes, I would not expect it to work because the sample event above looks nothing like the event you just posted and the regex isn't properly constructed.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2012 20:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-broken-up-by-a/m-p/21118#M3124</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-04-06T20:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp broken up by a |</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Timestamp-broken-up-by-a/m-p/21119#M3125</link>
      <description>&lt;P&gt;This works:&lt;/P&gt;

&lt;P&gt;TIME_PREFIX=^(([^|]*)|){16}&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Apr 2012 21:53:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Timestamp-broken-up-by-a/m-p/21119#M3125</guid>
      <dc:creator>ubko</dc:creator>
      <dc:date>2012-04-06T21:53:23Z</dc:date>
    </item>
  </channel>
</rss>

