<?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: Merging similar error strings in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576728#M201001</link>
    <description>&lt;LI-CODE lang="markup"&gt;| rex field=Error mode=sed "s/propertyKey=[^\.]+\./propertyKey=*./g"
| rex field=Error mode=sed "s/Locale is null for the language, .*/Locale is null for the language, */g"&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 30 Nov 2021 09:55:25 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-11-30T09:55:25Z</dc:date>
    <item>
      <title>Merging similar error strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576724#M200998</link>
      <description>&lt;P&gt;this is similar to&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Merging-with-similar-strings-without-eval/m-p/484972" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Merging-with-similar-strings-without-eval/m-p/484972&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It works perfect if the difference is at the end of the strings.&amp;nbsp;But I do have some additional strings that are slightly different in the middle.&lt;/P&gt;&lt;P&gt;My Current Query&lt;/P&gt;&lt;PRE&gt;Base search&lt;BR /&gt;| eval Error=message&lt;BR /&gt;| rex mode=sed "s/(?m)^\s+//g"&lt;BR /&gt;| rex field=Error mode=sed "s/^((?&amp;lt;Msg&amp;gt;.+)\s)\S+/\1*/"&lt;BR /&gt;| top 25 Error,file_line,level by build | table build level count file_line Error&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Error String Example 1:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;No exception occurred when displaying value for task=inspect entity.name=software propertyKey=keyNameForSomething. Please write a rule *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No exception occurred when displaying value for task=inspect entity.name=software propertyKey=keyNameForSomethingElse. Please write a rule *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No exception occurred when displaying value for task=inspect entity.name=software propertyKey=keyNameForSomethingElseElse. Please write a rule *&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error String Example 2&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Locale is null for the language, es with ec, com.EditingContext@1y3y1u3e. Skip this *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Locale is null for the language, en with ec, com.ITEditingContext@2y5f3u3e. Skip this *&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would hope my output to be the following or similar:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;Count, &amp;nbsp;Error&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3, No exception occurred when displaying value for task=inspect entity.name=software propertyKey=*. Please write a rule *&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2,&amp;nbsp;Locale is null for the language, *&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 09:38:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576724#M200998</guid>
      <dc:creator>erica</dc:creator>
      <dc:date>2021-11-30T09:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Merging similar error strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576728#M201001</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex field=Error mode=sed "s/propertyKey=[^\.]+\./propertyKey=*./g"
| rex field=Error mode=sed "s/Locale is null for the language, .*/Locale is null for the language, */g"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 Nov 2021 09:55:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576728#M201001</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-30T09:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Merging similar error strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576733#M201004</link>
      <description>&lt;P&gt;But I have a bunch of other errors, these 2 are just samples.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I want to refrain from being too specific with the rex string&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 10:12:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576733#M201004</guid>
      <dc:creator>erica</dc:creator>
      <dc:date>2021-11-30T10:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Merging similar error strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576734#M201005</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a bunch of other error messages, so im trying to refrain from being too specific with the rex string&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 10:13:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576734#M201005</guid>
      <dc:creator>erica</dc:creator>
      <dc:date>2021-11-30T10:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merging similar error strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576738#M201007</link>
      <description>&lt;P&gt;You don't need to be completely specific, you do however have to identify match patterns to cover each of the types of error message you wish to change. Since you only provided two types of examples, which don't appear to have a common pattern, there are two rex expressions.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 10:24:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576738#M201007</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-30T10:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Merging similar error strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576743#M201008</link>
      <description>&lt;P&gt;You might want to try &lt;A href="https://splunkbase.splunk.com/app/3109/" target="_blank" rel="noopener"&gt;https://splunkbase.splunk.com/app/3109/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Disclaimer: Haven't used it myself. It's just what I found by searching for "splunk fuzzy match".&lt;/P&gt;&lt;P&gt;Another one is &lt;A href="https://splunkbase.splunk.com/app/5237/" target="_blank"&gt;https://splunkbase.splunk.com/app/5237/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 11:24:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576743#M201008</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-30T11:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Merging similar error strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576848#M201031</link>
      <description>&lt;P&gt;ah. I was hoping there could be a pattern for those.&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 07:23:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576848#M201031</guid>
      <dc:creator>erica</dc:creator>
      <dc:date>2021-12-01T07:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Merging similar error strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576877#M201043</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;if you are not interested those exact error messages you can use field punct to grouping those.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;...
| stats values(error_msg) as error by punct
....&lt;/LI-CODE&gt;&lt;P&gt;Probably it didn't give you a exactly what you are wanting but maybe you can use is as a starting point?&lt;/P&gt;&lt;P&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 11:40:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576877#M201043</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-12-01T11:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Merging similar error strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576900#M201053</link>
      <description>&lt;P&gt;Hmm Im not sure how punct is used here?&amp;nbsp;&lt;/P&gt;&lt;P&gt;it turns the error into serious of character and im not able to get any result with any grouping command&amp;nbsp;&lt;BR /&gt;eg:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;| Top 25 punct&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erica_1-1638366525305.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17077i50D6706C0D23580A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erica_1-1638366525305.png" alt="erica_1-1638366525305.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 13:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576900#M201053</guid>
      <dc:creator>erica</dc:creator>
      <dc:date>2021-12-01T13:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Merging similar error strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576902#M201055</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Splexicon:Punct" target="_blank"&gt;https://docs.splunk.com/Splexicon:Punct&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Basically punct shows somekind of pattern of _raw. &amp;nbsp;This means that it also shows pattern of your error message. If those error messages are enough close to each other then those puncts are same even e.g. words are not exactly same. Maybe as I already said this is not a best option for you case but e.g. classifying errors in _internal it works quite well.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 13:56:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-similar-error-strings/m-p/576902#M201055</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-12-01T13:56:37Z</dc:date>
    </item>
  </channel>
</rss>

