<?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 To extract string value using regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/To-extract-string-value-using-regex/m-p/679466#M232290</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I want to extract the below field value, here the challenge is the error code 403 sometimes it will change.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;SPAN class=""&gt;processing_stage&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt; "&lt;SPAN class=""&gt;Getting&lt;/SPAN&gt; &lt;SPAN class=""&gt;a&lt;/SPAN&gt; &lt;SPAN class=""&gt;response&lt;/SPAN&gt; &lt;SPAN class=""&gt;of&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN class=""&gt;403&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;CRM&lt;/SPAN&gt; &lt;SPAN class=""&gt;Lead&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kindly help me to extract the message using regex or any option available.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2024 11:16:43 GMT</pubDate>
    <dc:creator>parthiban</dc:creator>
    <dc:date>2024-03-04T11:16:43Z</dc:date>
    <item>
      <title>To extract string value using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-extract-string-value-using-regex/m-p/679466#M232290</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I want to extract the below field value, here the challenge is the error code 403 sometimes it will change.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;SPAN class=""&gt;processing_stage&lt;/SPAN&gt;"&lt;SPAN class=""&gt;:&lt;/SPAN&gt; "&lt;SPAN class=""&gt;Getting&lt;/SPAN&gt; &lt;SPAN class=""&gt;a&lt;/SPAN&gt; &lt;SPAN class=""&gt;response&lt;/SPAN&gt; &lt;SPAN class=""&gt;of&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN class=""&gt;403&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN class=""&gt;from&lt;/SPAN&gt; &lt;SPAN class=""&gt;CRM&lt;/SPAN&gt; &lt;SPAN class=""&gt;Lead&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kindly help me to extract the message using regex or any option available.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 11:16:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-extract-string-value-using-regex/m-p/679466#M232290</guid>
      <dc:creator>parthiban</dc:creator>
      <dc:date>2024-03-04T11:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: To extract string value using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-extract-string-value-using-regex/m-p/679467#M232291</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261434"&gt;@parthiban&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if the message string is fixed, you could try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt; 
| rex "\"Getting a response of (?&amp;lt;response&amp;gt;\d+)"
| table ...&lt;/LI-CODE&gt;&lt;P&gt;you can test this regex at&amp;nbsp;&lt;A href="https://regex101.com/r/mz4c1L/1" target="_blank"&gt;https://regex101.com/r/mz4c1L/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 11:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-extract-string-value-using-regex/m-p/679467#M232291</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-04T11:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: To extract string value using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-extract-string-value-using-regex/m-p/679474#M232293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&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;It is not working as expected, I need to extract full string&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parthiban_0-1709554414427.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29583i8011A0253FB7F757/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parthiban_0-1709554414427.png" alt="parthiban_0-1709554414427.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 12:14:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-extract-string-value-using-regex/m-p/679474#M232293</guid>
      <dc:creator>parthiban</dc:creator>
      <dc:date>2024-03-04T12:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: To extract string value using regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/To-extract-string-value-using-regex/m-p/679482#M232298</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/261434"&gt;@parthiban&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you hughlighted only the 403 response code, if you want the full string, you could use:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\"processing_stage\": \"(?&amp;lt;response&amp;gt;[^\"]+)"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&lt;A href="https://regex101.com/r/mz4c1L/2" target="_blank"&gt;https://regex101.com/r/mz4c1L/2&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 13:30:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/To-extract-string-value-using-regex/m-p/679482#M232298</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-03-04T13:30:00Z</dc:date>
    </item>
  </channel>
</rss>

