<?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 How to group values using wildcard in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-using-wildcard/m-p/431811#M123427</link>
    <description>&lt;P&gt;&lt;CODE&gt;index=**** Name=GOKI|stats count by SK SO&lt;/CODE&gt;&lt;BR /&gt;
This is the result that I get now.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SK                    SO         COUNT
d.e.f                 B3           2
a.b.c.1             A1            4
a.b.c.2             A2            6
a.b.c.3            A1             8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Expected Result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;d.e.f                 B3           2
a.b.c.*              A1          12
a.b.c.*              A2           6
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I get the expected result?&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 07:14:10 GMT</pubDate>
    <dc:creator>gokikrishnan198</dc:creator>
    <dc:date>2018-07-11T07:14:10Z</dc:date>
    <item>
      <title>How to group values using wildcard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-using-wildcard/m-p/431811#M123427</link>
      <description>&lt;P&gt;&lt;CODE&gt;index=**** Name=GOKI|stats count by SK SO&lt;/CODE&gt;&lt;BR /&gt;
This is the result that I get now.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SK                    SO         COUNT
d.e.f                 B3           2
a.b.c.1             A1            4
a.b.c.2             A2            6
a.b.c.3            A1             8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Expected Result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;d.e.f                 B3           2
a.b.c.*              A1          12
a.b.c.*              A2           6
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I get the expected result?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 07:14:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-using-wildcard/m-p/431811#M123427</guid>
      <dc:creator>gokikrishnan198</dc:creator>
      <dc:date>2018-07-11T07:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to group values using wildcard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-using-wildcard/m-p/431812#M123428</link>
      <description>&lt;P&gt;Make your SK values be what you want them to be before summing up. Depending on the actual rules for wildcarding it might look something like this: &lt;CODE&gt;index=**** Name=GOKI | eval SK = replace(SK, "^(\w+\.\w+\.\w+\.).+", "\1.*") |stats count by SK SO&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 09:29:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-using-wildcard/m-p/431812#M123428</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2018-07-11T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to group values using wildcard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-using-wildcard/m-p/431813#M123429</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=**** Name=GOKI
| rex field=SK mode=sed "s/^(\d\.\d\.\d\.)/\1.*/"
| stats count by SK SO
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Jul 2018 16:58:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-using-wildcard/m-p/431813#M123429</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-11T16:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to group values using wildcard</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-using-wildcard/m-p/530995#M150000</link>
      <description>&lt;P&gt;Thanks, that works fine! but how do I Add this "OR" function --&amp;gt; so counting AB* OR BA* as one count&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 11:14:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-values-using-wildcard/m-p/530995#M150000</guid>
      <dc:creator>Toby_r</dc:creator>
      <dc:date>2020-11-26T11:14:32Z</dc:date>
    </item>
  </channel>
</rss>

