<?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: Remove specific substrings from specific values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523837#M147782</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Try adding below to replace message with the one you are looking for.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;index=mint event_name=APIServiceError appEnvironment=Release appVersionName&amp;gt;=3.0&lt;BR /&gt;(&lt;BR /&gt;extraData.message="Incorrect email or password for*" OR&lt;BR /&gt;extraData.message="Street address and/or city is too long*" OR&lt;BR /&gt;extraData.message="The following address could not be found:*" OR&lt;BR /&gt;extraData.message="We failed to authorize your payment card. Please verify your payment card is valid." OR&lt;BR /&gt;extraData.message="The network connection was lost."&lt;BR /&gt;)&lt;BR /&gt;&lt;STRONG&gt;| eval extraData.message=if(like(extraData.message, "Street address and/or city is too long*"), "Street address and/or city is too long",extraData.message)&lt;/STRONG&gt; | stats count by extraData.message | sort -count&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 04:41:59 GMT</pubDate>
    <dc:creator>Pathik</dc:creator>
    <dc:date>2020-10-09T04:41:59Z</dc:date>
    <item>
      <title>Remove specific substrings from specific values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523823#M147776</link>
      <description>&lt;P&gt;I have a query that looks for certain error messages and displays a list sorted by most common occurrence. My problem is that some of these error messages contain unique IDs, causing them to show as separate results.&lt;/P&gt;&lt;P&gt;The first 3 messages below end with unique values - how do I update this query to output those error messages without the unique values after the * mark, or even replace with another string like "redacted"?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=mint event_name=APIServiceError appEnvironment=Release appVersionName&amp;gt;=3.0 
  (
    extraData.message="Incorrect email or password for*"  OR
    extraData.message="Street address and/or city is too long*" OR
    extraData.message="The following address could not be found:*" OR
    extraData.message="We failed to authorize your payment card. Please verify your payment card is valid." OR
    extraData.message="The network connection was lost."
  )  
| stats count by extraData.message | sort -count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 00:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523823#M147776</guid>
      <dc:creator>techspec</dc:creator>
      <dc:date>2020-10-09T00:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific substrings from specific values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523837#M147782</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Try adding below to replace message with the one you are looking for.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;index=mint event_name=APIServiceError appEnvironment=Release appVersionName&amp;gt;=3.0&lt;BR /&gt;(&lt;BR /&gt;extraData.message="Incorrect email or password for*" OR&lt;BR /&gt;extraData.message="Street address and/or city is too long*" OR&lt;BR /&gt;extraData.message="The following address could not be found:*" OR&lt;BR /&gt;extraData.message="We failed to authorize your payment card. Please verify your payment card is valid." OR&lt;BR /&gt;extraData.message="The network connection was lost."&lt;BR /&gt;)&lt;BR /&gt;&lt;STRONG&gt;| eval extraData.message=if(like(extraData.message, "Street address and/or city is too long*"), "Street address and/or city is too long",extraData.message)&lt;/STRONG&gt; | stats count by extraData.message | sort -count&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 04:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523837#M147782</guid>
      <dc:creator>Pathik</dc:creator>
      <dc:date>2020-10-09T04:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific substrings from specific values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523841#M147786</link>
      <description>Hi&lt;BR /&gt;Other option is use rex mode=sed&lt;BR /&gt;r. Ismo</description>
      <pubDate>Fri, 09 Oct 2020 04:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523841#M147786</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-10-09T04:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific substrings from specific values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523974#M147837</link>
      <description>&lt;P&gt;Thanks - what you suggested makes sense, but I used it exactly as you showed and get "no results found": &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-10-09 at 11.32.57 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11232i4E9CB6DB8122818A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-10-09 at 11.32.57 AM.png" alt="Screen Shot 2020-10-09 at 11.32.57 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 18:33:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523974#M147837</guid>
      <dc:creator>techspec</dc:creator>
      <dc:date>2020-10-09T18:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific substrings from specific values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523980#M147840</link>
      <description>With like you must use % and _ instead of *&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/SearchReference/ConditionalFunctions" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/SearchReference/ConditionalFunctions&lt;/A&gt;</description>
      <pubDate>Fri, 09 Oct 2020 18:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523980#M147840</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-10-09T18:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific substrings from specific values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523988#M147842</link>
      <description>&lt;P&gt;Thanks - still no luck. Even tried on an error message with no wildcards, just a simple match and replace:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-10-09 at 12.34.49 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11233i5C592C9E5A903219/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-10-09 at 12.34.49 PM.png" alt="Screen Shot 2020-10-09 at 12.34.49 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 19:36:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/523988#M147842</guid>
      <dc:creator>techspec</dc:creator>
      <dc:date>2020-10-09T19:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific substrings from specific values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/524012#M147849</link>
      <description>Try to put ‘ surround your field names.</description>
      <pubDate>Sat, 10 Oct 2020 06:03:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/524012#M147849</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-10-10T06:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Remove specific substrings from specific values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/524032#M147851</link>
      <description>&lt;P&gt;That did it - thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 10 Oct 2020 15:52:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-specific-substrings-from-specific-values/m-p/524032#M147851</guid>
      <dc:creator>techspec</dc:creator>
      <dc:date>2020-10-10T15:52:42Z</dc:date>
    </item>
  </channel>
</rss>

