<?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 values with similar in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Merging-values-with-similar/m-p/363905#M107435</link>
    <description>&lt;P&gt;What happens if I know there are many string repetitions in the results? Someway to merge all of them together without having to do an &lt;CODE&gt;eval&lt;/CODE&gt; for every  string?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2017 22:23:53 GMT</pubDate>
    <dc:creator>exocore123</dc:creator>
    <dc:date>2017-06-26T22:23:53Z</dc:date>
    <item>
      <title>Merging values with similar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-values-with-similar/m-p/363903#M107433</link>
      <description>&lt;P&gt;I want to merge values with similar string context and still be able to reverse search for those logs. Similar to this &lt;/P&gt;

&lt;P&gt;The stats count look something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;error                                        count
invalid input                                  25
price "1.24" does not match "1.21"              1
price "1.00" does not match "1.01"              1
price "1.34" does not match "3.21"              1
external services                              15
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want it to look something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;error                                        count
invalid input                                  25
price * does not match *                        3
external services                              15
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When say I want to find the logs matches "price __ does not match __ " I can see the list of specific logs combined&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 16:20:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-values-with-similar/m-p/363903#M107433</guid>
      <dc:creator>exocore123</dc:creator>
      <dc:date>2017-06-26T16:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Merging values with similar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-values-with-similar/m-p/363904#M107434</link>
      <description>&lt;P&gt;If you know all the patterns which you want to merge, like &lt;CODE&gt;price "N1" does not match "N2"&lt;/CODE&gt;, then you use use eval replace command before your stats command to make them similar.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search before stats
| eval error=replace(error,"(price )\S+( does not match )\S+","\1*\2*")
| stats count by error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If it throws error, escape the asterisk with &lt;CODE&gt;\&lt;/CODE&gt; in replace command.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 16:32:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-values-with-similar/m-p/363904#M107434</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-06-26T16:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Merging values with similar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-values-with-similar/m-p/363905#M107435</link>
      <description>&lt;P&gt;What happens if I know there are many string repetitions in the results? Someway to merge all of them together without having to do an &lt;CODE&gt;eval&lt;/CODE&gt; for every  string?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 22:23:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-values-with-similar/m-p/363905#M107435</guid>
      <dc:creator>exocore123</dc:creator>
      <dc:date>2017-06-26T22:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Merging values with similar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Merging-values-with-similar/m-p/363906#M107436</link>
      <description>&lt;P&gt;@exocore123 have you found the way to merge all of them without using an &lt;CODE&gt;eval&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 03:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Merging-values-with-similar/m-p/363906#M107436</guid>
      <dc:creator>chiilii</dc:creator>
      <dc:date>2020-04-30T03:43:07Z</dc:date>
    </item>
  </channel>
</rss>

