<?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: How can I group similar fields and count by field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362100#M106970</link>
    <description>&lt;P&gt;that works, thank you very much for the help&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2017 15:14:52 GMT</pubDate>
    <dc:creator>YTKme</dc:creator>
    <dc:date>2017-08-11T15:14:52Z</dc:date>
    <item>
      <title>How can I group similar fields and count by field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362094#M106964</link>
      <description>&lt;P&gt;I was wondering if is possible to group / filter based on a single field. Below is a field called &lt;CODE&gt;user_agent&lt;/CODE&gt; for browsers. I wanted to group similar browser type (Chrome, Firefox, Safari, etc), and count a total of each browser by date.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv%3A54.0) Gecko/20100101 Firefox/54.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64; rv%3A54.0) Gecko/20100101 Firefox/54.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv%3A54.0) Gecko/20100101 Firefox/54.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv%3A54.0) Gecko/20100101 Firefox/54.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64; rv%3A38.0; GomezAgent 3.0) Gecko/20100101 Firefox/38.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv%3A11.0) like Gecko
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; rv%3A11.0) like Gecko
Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv%3A54.0) Gecko/20100101 Firefox/54.0
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; rv%3A11.0) like Gecko
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.134 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2017 18:14:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362094#M106964</guid>
      <dc:creator>YTKme</dc:creator>
      <dc:date>2017-08-10T18:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group similar fields and count by field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362095#M106965</link>
      <description>&lt;P&gt;try this:&lt;BR /&gt;
your search ... &lt;CODE&gt;|stats count(eval(like(user_agent,"%Chrome%"))) AS Chrome,  count(eval(like(user_agent,"%Safari%"))) AS Safari,  count(eval(like(user_agent,"%Firefox%"))) AS Firefox&lt;/CODE&gt;&lt;BR /&gt;
screenshot:&lt;BR /&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/3341i658304E2F419876E/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;hope it helps&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 18:54:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362095#M106965</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-08-10T18:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group similar fields and count by field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362096#M106966</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search with field _time and user_agent
| rex field=user_agent "(?&amp;lt;Browser&amp;gt;Chrome\/\d+|Firefox\/\d+|Version\/[\d+\.]+\d+\sSafari)" 
| timechart span=1d count by Browser
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Aug 2017 19:12:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362096#M106966</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-10T19:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group similar fields and count by field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362097#M106967</link>
      <description>&lt;P&gt;this works, got the results i wanted, thanks a lot&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 21:52:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362097#M106967</guid>
      <dc:creator>YTKme</dc:creator>
      <dc:date>2017-08-10T21:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group similar fields and count by field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362098#M106968</link>
      <description>&lt;P&gt;kind of a follow up question, when i try to put it in a visualization bar graph, it plotted the first column at the different axis than the rest of the columns, is there any way to plot all columns on the same axis on a graph?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 22:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362098#M106968</guid>
      <dc:creator>YTKme</dc:creator>
      <dc:date>2017-08-10T22:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group similar fields and count by field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362099#M106969</link>
      <description>&lt;P&gt;try to add by .... something&lt;BR /&gt;
i added &lt;CODE&gt;... | by host&lt;/CODE&gt; and the results looks fine &lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 13:03:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362099#M106969</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-08-11T13:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can I group similar fields and count by field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362100#M106970</link>
      <description>&lt;P&gt;that works, thank you very much for the help&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-group-similar-fields-and-count-by-field/m-p/362100#M106970</guid>
      <dc:creator>YTKme</dc:creator>
      <dc:date>2017-08-11T15:14:52Z</dc:date>
    </item>
  </channel>
</rss>

