<?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 Extract text from message field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-text-from-message-field/m-p/668642#M229352</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I need to extract a string from a message body,&amp;nbsp; and make a new field for it.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;Junk_Message&amp;gt; #body | Thing1 | Stuff2&amp;nbsp; | meh4 | so on 1 | extra stuff3 | Blah4 &amp;lt;/Junk_Message&amp;gt;&lt;BR /&gt;I just need the text that start with&amp;nbsp;#body and end with Blah4. To make things more fun everything after #body generates randomly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2023 19:44:09 GMT</pubDate>
    <dc:creator>codedtech</dc:creator>
    <dc:date>2023-11-14T19:44:09Z</dc:date>
    <item>
      <title>Extract text from message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-text-from-message-field/m-p/668642#M229352</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I need to extract a string from a message body,&amp;nbsp; and make a new field for it.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;Junk_Message&amp;gt; #body | Thing1 | Stuff2&amp;nbsp; | meh4 | so on 1 | extra stuff3 | Blah4 &amp;lt;/Junk_Message&amp;gt;&lt;BR /&gt;I just need the text that start with&amp;nbsp;#body and end with Blah4. To make things more fun everything after #body generates randomly.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 19:44:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-text-from-message-field/m-p/668642#M229352</guid>
      <dc:creator>codedtech</dc:creator>
      <dc:date>2023-11-14T19:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Extract text from message field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-text-from-message-field/m-p/668643#M229353</link>
      <description>&lt;P&gt;It would help to know what you've tried so far and how those attempts failed you.&lt;/P&gt;&lt;P&gt;One method that works well for me is the &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt; command.&amp;nbsp; This regex matches everything after "Junk_Message&amp;gt;" until the following "&amp;lt;" and puts it into a field called Junk_Message.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Junk_Message&amp;gt;(?&amp;lt;Junk_Message&amp;gt;[^\&amp;lt;])"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 19:49:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-text-from-message-field/m-p/668643#M229353</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-11-14T19:49:42Z</dc:date>
    </item>
  </channel>
</rss>

