<?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 search to show which browser and browser version users are using? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-to-show-which-browser-and-browser-version-users/m-p/346846#M165939</link>
    <description>&lt;P&gt;Hey @marshaljoel83, did you have any luck figuring this out?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Sep 2017 18:17:15 GMT</pubDate>
    <dc:creator>lfedak_splunk</dc:creator>
    <dc:date>2017-09-25T18:17:15Z</dc:date>
    <item>
      <title>How can I search to show which browser and browser version users are using?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-to-show-which-browser-and-browser-version-users/m-p/346845#M165938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I would like to extract and show the browser and version from the user-agent string, so as to segregate the different versions of the same browser is being used by the users (of our application).&lt;/P&gt;

&lt;P&gt;Below is the Splunk query being used to extract the browser details:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="sample_index" sourcetype="log_alias" operation="log-in" AND userAgent!="-" AND userAgent!="Apache" AND userAgent!="Load-weight" AND userAgent!="Java" AND userAgent!="Jakarta Commons-HttpClient" | stats count(eval(match(userAgent, "Firefox"))) as "Firefox", count(eval(match(userAgent, "Chrome"))) as "Chrome", count(eval(match(userAgent, "Safari") AND NOT match(userAgent, "Chrome"))) as "Safari", count(eval(match(userAgent, "MSIE|Trident"))) as "IE",  count(eval(NOT match(userAgent, "Chrome|Firefox|Safari|MSIE|Trident"))) as "Other" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This query will result in showing the count of users based on the browser usage. Screenshot of the statistics is shown below:&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/3519i0BA15CCDE76E7C95/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;I would like to extract and segregate the individual browser based on its version(s).&lt;BR /&gt;
For instance, if two users using two different versions of Google Chrome browser, that should be extracted.&lt;/P&gt;

&lt;P&gt;Please suggest.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 22:34:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-to-show-which-browser-and-browser-version-users/m-p/346845#M165938</guid>
      <dc:creator>marshaljoel83</dc:creator>
      <dc:date>2017-09-22T22:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search to show which browser and browser version users are using?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-to-show-which-browser-and-browser-version-users/m-p/346846#M165939</link>
      <description>&lt;P&gt;Hey @marshaljoel83, did you have any luck figuring this out?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Sep 2017 18:17:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-to-show-which-browser-and-browser-version-users/m-p/346846#M165939</guid>
      <dc:creator>lfedak_splunk</dc:creator>
      <dc:date>2017-09-25T18:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search to show which browser and browser version users are using?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-to-show-which-browser-and-browser-version-users/m-p/346847#M165940</link>
      <description>&lt;P&gt;Start with this base search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="sample_index" sourcetype="log_alias" operation="log-in" AND userAgent!="-" AND userAgent!="Apache" AND userAgent!="Load-weight" AND userAgent!="Java" AND userAgent!="Jakarta Commons-HttpClient" 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Attached to the above search, run each of the following and look at the interesting fields to identify and locate the name of the field that contains the version number. If it is the same for all of the below, then use that.  If it is different, or if no field has the information, then you will have to build a composite field, perhaps using &lt;CODE&gt;coalesce()&lt;/CODE&gt; or &lt;CODE&gt;case()&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search match(userAgent, "Firefox") | head 5

| search match(userAgent, "Chrome") | head 5

| search match(userAgent, "Safari") | head 5

| search match(userAgent, "MSIE|Trident") | head 5
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Sep 2017 18:25:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-to-show-which-browser-and-browser-version-users/m-p/346847#M165940</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-25T18:25:35Z</dc:date>
    </item>
  </channel>
</rss>

