<?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 timestamp extra in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extra/m-p/84423#M17537</link>
    <description>&lt;P&gt;I put some oracle-exported data into splunk, with props.conf:&lt;/P&gt;

&lt;P&gt;NO_BINARY_CHECK = true&lt;BR /&gt;
CHARSET = GB2312&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_PREFIX = (?&lt;TIMESTAMP&gt;(?:\d{2}(?:\/\d{2}){2}\s\d{2}(?::\d{2}){2})|(?:\d{4}(?:-\d{2}){2}\s\d{2}(?::\d{2}){2}))(?=(?:^[^^]*){27}$)&lt;/TIMESTAMP&gt;&lt;/P&gt;

&lt;P&gt;same result,easy to read: TIMEPREFIX = (?&lt;TIMESTAMP&gt;[^\^]*)(?=(?:\^[^\^]*){27}$)&lt;/TIMESTAMP&gt;&lt;/P&gt;

&lt;P&gt;Most timestamps are extracted correctly, but two of them are unexpected:&lt;/P&gt;

&lt;P&gt;event 1, 7/15/12 9:35:17.000 PM should be "05/03/12 15:56:32"   and event 2, 7/15/12 9:27:02.000 PM should be "04/11/12 19:15:18"  stong characters in raw&lt;/P&gt;

&lt;P&gt;1   »  &lt;STRONG&gt;7/15/12 9:35:17.000 PM&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
2012-05-03 15:57:45^INSERT^ "ipb-a-cjx-cx600-101SHELL/5/CMDRECORD(l): Record command information. (Task vt0 Ip 58.246.74.188 User gongchuang Command efu np-2 slot 2 ingress display status )"^129920652^"ipb-a-cjx-cx600-1"^"124.75.5.14"^"Syslog Probe on nmman5-pd"^"adsl-CX600"^""^"%%01SHELL"^2^"01SHELL/5/CMDRECORD(l): Record command information. (Task vt0 Ip 58.246.74.188 User gongchuang Command efu np-2 slot 2 ingress display status )"^05/03/12 15:57:22^05/03/12 15:56:32^&lt;STRONG&gt;05/03/12 15:56:32&lt;/STRONG&gt;^05/03/12 15:57:22^0^1^1^200^0^""^65534^0^0^0^"TROU5"^60637884^""^""^0^0^""^"124.75.5.14"^""^""^""^""^""^""^"" &lt;BR /&gt;
FirstOccurrence=05/03/12 15:56:32   Options|  InternalLast=05/03/12 15:57:22   Options|  StateChange=05/03/12 15:57:22   Options&lt;/P&gt;

&lt;P&gt;2   »  &lt;STRONG&gt;7/15/12 9:27:02.000 PM&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
2012-04-11 19:16:49^UPDATE^ "ipb-a-yh-9312-101SHELL/6/DISPLAY_CMDRECORD(l): Record command information. (Task vt0 Ip 124.74.213.3 User root Command display igmp-snooping port-info vlan 51 )DISPLAY_CMDRECORD(l):%%01SHELL/6/DISPLAY_CMDRECORD(l):Recordcommand"^126438075^"ipb-a-yh-9312-1"^"124.75.192.222"^"Syslog Probe on nmman5-pd"^"9312"^"DISPLAY_CMDRECORD(l):"^"%%01SHELL/6/DISPLAY_CMDRECORD(l):Recordcommand"^1^"01SHELL/6/DISPLAY_CMDRECORD(l): Record command information. (Task vt0 Ip 124.74.213.3 User root Command display igmp-snooping port-info vlan 51 )"^04/11/12 19:15:58^04/10/12 19:15:16^&lt;STRONG&gt;04/11/12 19:15:18&lt;/STRONG&gt;^04/11/12 19:15:18^0^1^97^200^0^""^65534^0^0^0^"TROU5"^58515545^""^""^0^0^""^"124.75.192.222"^""^""^""^""^""^""^"" &lt;BR /&gt;
FirstOccurrence=04/10/12 19:15:16   Options|  InternalLast=04/11/12 19:15:18   Options|  StateChange=04/11/12 19:15:58   &lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:15:07 GMT</pubDate>
    <dc:creator>crazyeva</dc:creator>
    <dc:date>2020-09-28T14:15:07Z</dc:date>
    <item>
      <title>timestamp extra</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extra/m-p/84423#M17537</link>
      <description>&lt;P&gt;I put some oracle-exported data into splunk, with props.conf:&lt;/P&gt;

&lt;P&gt;NO_BINARY_CHECK = true&lt;BR /&gt;
CHARSET = GB2312&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
TIME_PREFIX = (?&lt;TIMESTAMP&gt;(?:\d{2}(?:\/\d{2}){2}\s\d{2}(?::\d{2}){2})|(?:\d{4}(?:-\d{2}){2}\s\d{2}(?::\d{2}){2}))(?=(?:^[^^]*){27}$)&lt;/TIMESTAMP&gt;&lt;/P&gt;

&lt;P&gt;same result,easy to read: TIMEPREFIX = (?&lt;TIMESTAMP&gt;[^\^]*)(?=(?:\^[^\^]*){27}$)&lt;/TIMESTAMP&gt;&lt;/P&gt;

&lt;P&gt;Most timestamps are extracted correctly, but two of them are unexpected:&lt;/P&gt;

&lt;P&gt;event 1, 7/15/12 9:35:17.000 PM should be "05/03/12 15:56:32"   and event 2, 7/15/12 9:27:02.000 PM should be "04/11/12 19:15:18"  stong characters in raw&lt;/P&gt;

&lt;P&gt;1   »  &lt;STRONG&gt;7/15/12 9:35:17.000 PM&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
2012-05-03 15:57:45^INSERT^ "ipb-a-cjx-cx600-101SHELL/5/CMDRECORD(l): Record command information. (Task vt0 Ip 58.246.74.188 User gongchuang Command efu np-2 slot 2 ingress display status )"^129920652^"ipb-a-cjx-cx600-1"^"124.75.5.14"^"Syslog Probe on nmman5-pd"^"adsl-CX600"^""^"%%01SHELL"^2^"01SHELL/5/CMDRECORD(l): Record command information. (Task vt0 Ip 58.246.74.188 User gongchuang Command efu np-2 slot 2 ingress display status )"^05/03/12 15:57:22^05/03/12 15:56:32^&lt;STRONG&gt;05/03/12 15:56:32&lt;/STRONG&gt;^05/03/12 15:57:22^0^1^1^200^0^""^65534^0^0^0^"TROU5"^60637884^""^""^0^0^""^"124.75.5.14"^""^""^""^""^""^""^"" &lt;BR /&gt;
FirstOccurrence=05/03/12 15:56:32   Options|  InternalLast=05/03/12 15:57:22   Options|  StateChange=05/03/12 15:57:22   Options&lt;/P&gt;

&lt;P&gt;2   »  &lt;STRONG&gt;7/15/12 9:27:02.000 PM&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
2012-04-11 19:16:49^UPDATE^ "ipb-a-yh-9312-101SHELL/6/DISPLAY_CMDRECORD(l): Record command information. (Task vt0 Ip 124.74.213.3 User root Command display igmp-snooping port-info vlan 51 )DISPLAY_CMDRECORD(l):%%01SHELL/6/DISPLAY_CMDRECORD(l):Recordcommand"^126438075^"ipb-a-yh-9312-1"^"124.75.192.222"^"Syslog Probe on nmman5-pd"^"9312"^"DISPLAY_CMDRECORD(l):"^"%%01SHELL/6/DISPLAY_CMDRECORD(l):Recordcommand"^1^"01SHELL/6/DISPLAY_CMDRECORD(l): Record command information. (Task vt0 Ip 124.74.213.3 User root Command display igmp-snooping port-info vlan 51 )"^04/11/12 19:15:58^04/10/12 19:15:16^&lt;STRONG&gt;04/11/12 19:15:18&lt;/STRONG&gt;^04/11/12 19:15:18^0^1^97^200^0^""^65534^0^0^0^"TROU5"^58515545^""^""^0^0^""^"124.75.192.222"^""^""^""^""^""^""^"" &lt;BR /&gt;
FirstOccurrence=04/10/12 19:15:16   Options|  InternalLast=04/11/12 19:15:18   Options|  StateChange=04/11/12 19:15:58   &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extra/m-p/84423#M17537</guid>
      <dc:creator>crazyeva</dc:creator>
      <dc:date>2020-09-28T14:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extra</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extra/m-p/84424#M17538</link>
      <description>&lt;P&gt;crazyeva,&lt;/P&gt;

&lt;P&gt;That first TIME_PREFIX makes my head hurt.  Let's go with something closer to your second example.&lt;/P&gt;

&lt;P&gt;I would do something along these lines:&lt;/P&gt;

&lt;P&gt;TIME_PREFIX = ([\r\n]+)(?([^^]+^){14})&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2013 05:22:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extra/m-p/84424#M17538</guid>
      <dc:creator>mloven_splunk</dc:creator>
      <dc:date>2013-07-04T05:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extra</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extra/m-p/84425#M17539</link>
      <description>&lt;P&gt;Sorry to reply so late.&lt;BR /&gt;
The number of "^" is not sure from line starts, so i tried to find timestamp from their tails.&lt;BR /&gt;
By the way, I am confused that TIME_PREFIX attempts to match what is before timestamp or just to match timestamp?&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jul 2013 09:40:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extra/m-p/84425#M17539</guid>
      <dc:creator>crazyeva</dc:creator>
      <dc:date>2013-07-06T09:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: timestamp extra</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/timestamp-extra/m-p/84426#M17540</link>
      <description>&lt;P&gt;TIME_PREFIX is used to tell Splunk what comes before the timestamp.&lt;/P&gt;

&lt;P&gt;Also, in that TIME_PREFIX that I provided, the regex in the first set of parenthesis will match any number of returns or newlines.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2013 03:06:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/timestamp-extra/m-p/84426#M17540</guid>
      <dc:creator>mloven_splunk</dc:creator>
      <dc:date>2013-08-07T03:06:33Z</dc:date>
    </item>
  </channel>
</rss>

