<?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: Group results by a keyword in a particular field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Group-results-by-a-keyword-in-a-particular-field/m-p/249933#M74590</link>
    <description>&lt;P&gt;Thanks for that! It works, however it is not picking up URLS like this one - &lt;STRONG&gt;storage.us1.hightail.com&lt;/STRONG&gt;. As that URL is made up of 4 parts and not 3 I suppose? &lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2015 01:12:48 GMT</pubDate>
    <dc:creator>bushrangerjones</dc:creator>
    <dc:date>2015-10-02T01:12:48Z</dc:date>
    <item>
      <title>Group results by a keyword in a particular field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-results-by-a-keyword-in-a-particular-field/m-p/249931#M74588</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I am trying to group (bring together) the results by a keyword in a certain field. For example, I want to group all of the URLs that include "Hightail". As you can see from the screenshot I have several &lt;EM&gt;Hightail&lt;/EM&gt; URLs. I want to group them all together, and turn the results in to a dashboard. Would this be possible? &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/698iB44B065F6E2D3E7D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Current query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=proxy sourcetype=bluecoat cs_categories="*File Storage*" cs_username!="-" cs_method!="unknown" cs_host="*hightail*" | stats sum(cs_bytes) AS bytes_uploaded sum(sc_bytes) AS bytes_downloaded by cs_username cs_host sc_filter_result | eval megabytes_down=bytes_downloaded/1024/1024 | eval megabytes_up=bytes_uploaded/1024/1024 | rename cs_username as "User",cs_host as "Cloud storage URL", sc_filter_result AS "Result", megabytes_up as "Downloaded (MB)", megabytes_down as "Uploaded (MB)"| ......... replace OBSERVED with ALLOWED in Result | sort by -"Downloaded (MB)" | table User, displayName, department, Result, "Cloud storage URL", "Downloaded (MB)", "Uploaded (MB)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 06:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-results-by-a-keyword-in-a-particular-field/m-p/249931#M74588</guid>
      <dc:creator>bushrangerjones</dc:creator>
      <dc:date>2015-09-30T06:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Group results by a keyword in a particular field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-results-by-a-keyword-in-a-particular-field/m-p/249932#M74589</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=proxy sourcetype=bluecoat cs_categories="*File Storage*" cs_username!="-" cs_method!="unknown" cs_host="*hightail*" | stats sum(cs_bytes) AS bytes_uploaded sum(sc_bytes) AS bytes_downloaded by cs_username cs_host sc_filter_result  | eval cs_host=if(match(cs_host,".*\.hightail\.com"),"XXX.hightails.com",cs_host) | stats sum(*) as * by cs_username cs_host sc_filter_result | eval megabytes_down=bytes_downloaded/1024/1024 | eval megabytes_up=bytes_uploaded/1024/1024 | rename cs_username as "User",cs_host as "Cloud storage URL", sc_filter_result AS "Result", megabytes_up as "Downloaded (MB)", megabytes_down as "Uploaded (MB)"| ......... replace OBSERVED with ALLOWED in Result | sort by -"Downloaded (MB)" | table User, displayName, department, Result, "Cloud storage URL", "Downloaded (MB)", "Uploaded (MB)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2015 16:22:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-results-by-a-keyword-in-a-particular-field/m-p/249932#M74589</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-30T16:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Group results by a keyword in a particular field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-results-by-a-keyword-in-a-particular-field/m-p/249933#M74590</link>
      <description>&lt;P&gt;Thanks for that! It works, however it is not picking up URLS like this one - &lt;STRONG&gt;storage.us1.hightail.com&lt;/STRONG&gt;. As that URL is made up of 4 parts and not 3 I suppose? &lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 01:12:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-results-by-a-keyword-in-a-particular-field/m-p/249933#M74590</guid>
      <dc:creator>bushrangerjones</dc:creator>
      <dc:date>2015-10-02T01:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Group results by a keyword in a particular field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-results-by-a-keyword-in-a-particular-field/m-p/249934#M74591</link>
      <description>&lt;P&gt;I just added this line:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval cs_host=if(match(cs_host,".*\.au1\.hightail\.com"), "XXX.hightail.com",cs_host)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Seem to have done the job! Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 04:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-results-by-a-keyword-in-a-particular-field/m-p/249934#M74591</guid>
      <dc:creator>bushrangerjones</dc:creator>
      <dc:date>2015-10-02T04:38:04Z</dc:date>
    </item>
  </channel>
</rss>

