<?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: Extract a string from _raw in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-raw/m-p/635293#M220714</link>
    <description>&lt;P&gt;Thank you so much.., I was trying a lot of thing like field extraction and regex and you helped it well with ?.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 12:19:17 GMT</pubDate>
    <dc:creator>avadhutha</dc:creator>
    <dc:date>2023-03-21T12:19:17Z</dc:date>
    <item>
      <title>How to extract a string from _raw?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-raw/m-p/635290#M220712</link>
      <description>&lt;P&gt;I have a string like below and unable to extract accuratly with rex command please suggest&amp;nbsp; any alternative way.&lt;/P&gt;
&lt;P&gt;_raw----------------&lt;/P&gt;
&lt;P&gt;{lable:harish,message: Say something, location:India, state:TS,qual:xyz}&lt;/P&gt;
&lt;P&gt;{message: say nothing,lable:harish, location:India, state:TS,qual:xyz}&lt;/P&gt;
&lt;P&gt;{lable:harish, location:India, state:TS,qual:xyz,message: say splunk splunk answers}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The message value is randomized location and I need to pick the message value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try with below command it is not considering the proper end position. Please suggest&lt;/P&gt;
&lt;P&gt;|rex "message:(?&amp;lt;Message_value&amp;gt;.*)[,|}]" |table Message_Value&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 16:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-raw/m-p/635290#M220712</guid>
      <dc:creator>avadhutha</dc:creator>
      <dc:date>2023-03-21T16:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a string from _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-raw/m-p/635291#M220713</link>
      <description>&lt;P&gt;Field names are case-sensitive, also, you are using a greedy match which may pick up more than you bargained for - try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|rex "message:(?&amp;lt;Message_Value&amp;gt;.*?)[,|}]" |table Message_Value&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 12:14:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-raw/m-p/635291#M220713</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-03-21T12:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a string from _raw</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-raw/m-p/635293#M220714</link>
      <description>&lt;P&gt;Thank you so much.., I was trying a lot of thing like field extraction and regex and you helped it well with ?.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 12:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-string-from-raw/m-p/635293#M220714</guid>
      <dc:creator>avadhutha</dc:creator>
      <dc:date>2023-03-21T12:19:17Z</dc:date>
    </item>
  </channel>
</rss>

