<?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: How do you extract out relevant message from _raw, trimming the timestamp part? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454125#M128491</link>
    <description>&lt;P&gt;This was the most generic regex I could find with the amount of information you shared, while staying minimally efficient I'd say:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=1
| eval _raw="[1/13/19 10:18:20:577 GMT] 00000097 LogOut O INFO: Sun Jan 13 10:18:20 GMT 2019: THIS IS MY MESSAGE STRING."
| rex "\[\d*\/\d*\/\d* \d{2}:\d{2}:\d{2}:\d{3}[^\]]+\].*INFO:[^:]+:\d{2}:\d{2}[^:]+:(?&amp;lt;_raw&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Feb 2019 13:00:26 GMT</pubDate>
    <dc:creator>tiagopeq</dc:creator>
    <dc:date>2019-02-06T13:00:26Z</dc:date>
    <item>
      <title>How do you extract out relevant message from _raw, trimming the timestamp part?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454122#M128488</link>
      <description>&lt;P&gt;How can I trim the date timestamp from &lt;STRONG&gt;&lt;EM&gt;_raw&lt;/EM&gt;&lt;/STRONG&gt;. My _raw is  as follows:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;[1/13/19 10:18:20:577 GMT] 00000097 LogOut O INFO: Sun Jan 13 10:18:20 GMT 2019: **THIS IS MY MESSAGE STRING.&lt;/EM&gt;* *&lt;/P&gt;

&lt;P&gt;And I want to extract out just the message: &lt;STRONG&gt;&lt;EM&gt;THIS IS MY MESSAGE STRING.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:10:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454122#M128488</guid>
      <dc:creator>jainkul123</dc:creator>
      <dc:date>2020-09-29T23:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract out relevant message from _raw, trimming the timestamp part?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454123#M128489</link>
      <description>&lt;P&gt;You can try using the below regular expression.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  \[.*\].*?\w{3}\s+\w{3}\s+\d{1,2}\s+\d{2}\:\d{2}\:\d{2}\s\S+\s+\d{4}\:\s+(?.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Demo: &lt;A href="https://regex101.com/r/ze1Jxk/1"&gt;https://regex101.com/r/ze1Jxk/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 12:37:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454123#M128489</guid>
      <dc:creator>rshah_splunk</dc:creator>
      <dc:date>2019-02-06T12:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract out relevant message from _raw, trimming the timestamp part?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454124#M128490</link>
      <description>&lt;P&gt;@jainkul123 ,&lt;/P&gt;

&lt;P&gt;Give this a try,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"your search"|rex field=_raw "\w{3}\s\w{3}\s+\d{1,2}\s+\d{1,2}:\d{1,2}:\d{1,2}\s\w{3}\s\d{4}:\s(?&amp;lt;Message&amp;gt;.+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Feb 2019 12:49:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454124#M128490</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-02-06T12:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract out relevant message from _raw, trimming the timestamp part?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454125#M128491</link>
      <description>&lt;P&gt;This was the most generic regex I could find with the amount of information you shared, while staying minimally efficient I'd say:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults count=1
| eval _raw="[1/13/19 10:18:20:577 GMT] 00000097 LogOut O INFO: Sun Jan 13 10:18:20 GMT 2019: THIS IS MY MESSAGE STRING."
| rex "\[\d*\/\d*\/\d* \d{2}:\d{2}:\d{2}:\d{3}[^\]]+\].*INFO:[^:]+:\d{2}:\d{2}[^:]+:(?&amp;lt;_raw&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:00:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454125#M128491</guid>
      <dc:creator>tiagopeq</dc:creator>
      <dc:date>2019-02-06T13:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract out relevant message from _raw, trimming the timestamp part?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454126#M128492</link>
      <description>&lt;P&gt;This works, thank you&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2019 18:14:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454126#M128492</guid>
      <dc:creator>jainkul123</dc:creator>
      <dc:date>2019-02-10T18:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you extract out relevant message from _raw, trimming the timestamp part?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454127#M128493</link>
      <description>&lt;P&gt;If it works you should accept it to close out the question&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2019 19:57:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-extract-out-relevant-message-from-raw-trimming-the/m-p/454127#M128493</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2019-02-10T19:57:22Z</dc:date>
    </item>
  </channel>
</rss>

