<?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 extraction in multiline event in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607178#M105437</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241220"&gt;@zapping575&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if the timestamp is the only one wit this format, you don't need to use TIME_PREFIX, but TIME_FORMAT is sufficient.&lt;/P&gt;&lt;P&gt;Then, if you want to use TIME_PREFIX, I'd use one more simplex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_FORMAT = %a %b %e %H:%M:%S %Y
TIME_PREFIX = Time:\s+&lt;/LI-CODE&gt;&lt;P&gt;but remember to enable&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SHOULD_LINEMERGE = True&lt;/LI-CODE&gt;&lt;P&gt;Then, where do you located this props.conf?&lt;/P&gt;&lt;P&gt;it must be in the Indexers or (when present) on Heavy Forwarders.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2022 12:22:48 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-07-27T12:22:48Z</dc:date>
    <item>
      <title>How to extract timestamp in multiline event?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607169#M105436</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;can somebody please give me a hand w/ this. I would like to extract the timestamp from an Event like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Info1:   ASDF
Info2:          QWE
Info3:          YXC
Time:                MON JAN 01 00:00:00 2022&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Here is what I am using in props.conf. According to regex101, my TIME_PREFIX should be good, but it doesnt work (splunk uses the current time in the _time field). The fact that weekday and month are capitalized should not be problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;TIME_FORMAT = %a %b %e %H:%M:%S %Y
TIME_PREFIX = ^.*\n^.*\n^.*\n^Time:\s+&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 14:39:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607169#M105436</guid>
      <dc:creator>zapping575</dc:creator>
      <dc:date>2022-07-27T14:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction in multiline event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607178#M105437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241220"&gt;@zapping575&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if the timestamp is the only one wit this format, you don't need to use TIME_PREFIX, but TIME_FORMAT is sufficient.&lt;/P&gt;&lt;P&gt;Then, if you want to use TIME_PREFIX, I'd use one more simplex:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_FORMAT = %a %b %e %H:%M:%S %Y
TIME_PREFIX = Time:\s+&lt;/LI-CODE&gt;&lt;P&gt;but remember to enable&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SHOULD_LINEMERGE = True&lt;/LI-CODE&gt;&lt;P&gt;Then, where do you located this props.conf?&lt;/P&gt;&lt;P&gt;it must be in the Indexers or (when present) on Heavy Forwarders.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 12:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607178#M105437</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-27T12:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction in multiline event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607179#M105438</link>
      <description>&lt;P&gt;I suspect Splunk is having a problem with the newlines in the regex.&amp;nbsp; I've seen that before.&amp;nbsp; Try these settings:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TIME_FORMAT = %a %b %e %H:%M:%S %Y
TIME_PREFIX = Time:\s+&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 27 Jul 2022 12:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607179#M105438</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-07-27T12:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction in multiline event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607202#M105440</link>
      <description>&lt;P&gt;Ciao &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, its working!&lt;/P&gt;&lt;P&gt;Funnily enough, before I tried the RegEx shown in the OP, I tried one which is very close to yours, but didnt work :):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;^Time:\s+&lt;/LI-CODE&gt;&lt;P&gt;Thank you very much.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;While I know that this is an off topic question, a different problem has turned up now:&lt;BR /&gt;The file contains a header that I cannot seem to get rid of.&lt;/P&gt;&lt;P&gt;I tried setting&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;FIELD_HEADER_REGEX = ==\[&lt;/LI-CODE&gt;&lt;P&gt;but this again did not work. Here is the header: (notice the "==[", after which the first event begins)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Info1: qwe
Info2: asd
Info3: yxc
Info4: foo
Info5: bar
Info6: baz
Info7: fizz
Info8: buzz

==[&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 13:33:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607202#M105440</guid>
      <dc:creator>zapping575</dc:creator>
      <dc:date>2022-07-27T13:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction in multiline event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607204#M105441</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241220"&gt;@zapping575&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the regex "^Time:\s+" is wrong, because the "^" means that Time is at the beginning of your event and it isn't true.&lt;/P&gt;&lt;P&gt;Anyway, please accept one answer for the other people of Community.&lt;/P&gt;&lt;P&gt;The other question is completely different so I hint to put in a new question, to be sure to have a quicker and probably better answer.&lt;/P&gt;&lt;P&gt;Anyway, what do you want to do: remove header or take it?&lt;/P&gt;&lt;P&gt;If you want to remove it , use SEDCMD command (&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.0.0/Data/Anonymizedata" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.0/Data/Anonymizedata&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;the command you used is to identify header and have the fields list.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 13:54:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607204#M105441</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-27T13:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp extraction in multiline event</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607207#M105442</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241220"&gt;@zapping575&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 14:00:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-timestamp-in-multiline-event/m-p/607207#M105442</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-27T14:00:43Z</dc:date>
    </item>
  </channel>
</rss>

