<?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: Grouping similar in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161599#M45679</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Sorry about that only the Google ones should be groups the umich ones are fine separate&lt;/P&gt;</description>
    <pubDate>Mon, 13 Oct 2014 20:37:20 GMT</pubDate>
    <dc:creator>brywilk_umich</dc:creator>
    <dc:date>2014-10-13T20:37:20Z</dc:date>
    <item>
      <title>Grouping similar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161596#M45676</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;

&lt;P&gt;Im have a search and its working great for calculating averages based on the domain, the problem is that I would like to group the google.com's together.  I thought I could do it with the eval command but it doesnt seem to be working for me&lt;/P&gt;

&lt;P&gt;search&lt;BR /&gt;
index=collaboration tag::host=inbound [search index=collaboration tag::host=inbound mail_sender=&lt;A href="mailto:email_address@umich.edu" target="_blank"&gt;email_address@umich.edu&lt;/A&gt; | fields simta_id] | transaction simta_id | stats avg(duration) as "Average Duration" by domain_name&lt;/P&gt;

&lt;P&gt;output looks like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;adsroot.itcs.umich.edu  31.538462
med.umich.edu   35.000000
mail-ig0-f173.google.com    61.000000
mail-ig0-f175.google.com    36.000000
mail-oi0-f47.google.com 36.000000
mail-qa0-f44.google.com 36.000000
mail-vc0-f178.google.com    36.000000
mail-wg0-f49.google.com 36.000000
mail-wi0-f178.google.com    37.000000
mail-yh0-f51.google.com 34.000000
mail-yk0-f170.google.com    36.000000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;thanks all&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:52:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161596#M45676</guid>
      <dc:creator>brywilk_umich</dc:creator>
      <dc:date>2020-09-28T17:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping similar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161597#M45677</link>
      <description>&lt;P&gt;Will there be other domains like "google.com" which may appear multiple time? Also, the first two entries in your output, should they be also clubbed into one? (they both are from umich.edu domain)&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 20:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161597#M45677</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-13T20:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping similar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161598#M45678</link>
      <description>&lt;P&gt;By "group the google.com's" together, do you mean you want 1 average for all *.google.com domain_names ? Do you want the umich.edu domain_names grouped as well?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161598#M45678</guid>
      <dc:creator>acharlieh</dc:creator>
      <dc:date>2020-09-28T17:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping similar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161599#M45679</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Sorry about that only the Google ones should be groups the umich ones are fine separate&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 20:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161599#M45679</guid>
      <dc:creator>brywilk_umich</dc:creator>
      <dc:date>2014-10-13T20:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping similar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161600#M45680</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Sorry about that only the Google ones should be groups the umich ones are fine separate&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2014 20:37:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161600#M45680</guid>
      <dc:creator>brywilk_umich</dc:creator>
      <dc:date>2014-10-13T20:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping similar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161601#M45681</link>
      <description>&lt;P&gt;If the full hostname does not matter for google.com you could do something like the following to reassign just google.com:&lt;/P&gt;

&lt;P&gt;index=collaboration tag::host=inbound [search index=collaboration tag::host=inbound mail_sender=&lt;A href="mailto:email_address@umich.edu" target="_blank"&gt;email_address@umich.edu&lt;/A&gt; | fields simta_id] | transaction simta_id |eval domain_name=if(match(domain_name,".*google.com"),"google.com",domain_name)| stats avg(duration) as "Average Duration" by domain_name &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:51:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161601#M45681</guid>
      <dc:creator>chanfoli</dc:creator>
      <dc:date>2020-09-28T17:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping similar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161602#M45682</link>
      <description>&lt;P&gt;Another alternative&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=collaboration tag::host=inbound [search index=collaboration tag::host=inbound mail_sender=email_address@umich.edu | fields simta_id] | transaction simta_id | replace *.google.com with google.com in domain_name| stats avg(duration) as "Average Duration" by domain_name 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Oct 2014 21:34:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Grouping-similar/m-p/161602#M45682</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-13T21:34:37Z</dc:date>
    </item>
  </channel>
</rss>

