<?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: Finding difficulty in extracting count of browser type from user agent in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/538196#M152124</link>
    <description>&lt;P&gt;Hi Splunk team&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find below image for sample log file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaibalaraman_0-1612221570204.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12778iE6D040ADD5538549/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaibalaraman_0-1612221570204.png" alt="jaibalaraman_0-1612221570204.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 23:19:53 GMT</pubDate>
    <dc:creator>jaibalaraman</dc:creator>
    <dc:date>2021-02-01T23:19:53Z</dc:date>
    <item>
      <title>Finding difficulty in extracting count of browser type from user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537528#M151970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help in determining the browser that appear in our logs. I believe the simple way to use the app TA - UA parser or an external script but unfortunately i do not have enough access rights to use the tools.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SPL command -&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=aws sourcetype = * Website="*" | stats count(eval(match(User_Agent, "Firefox"))) as "Firefox", count(eval(match(User_Agent, "Chrome"))) as "Chrome", count(eval(match(User_Agent, "Safari"))) as "Safari", count(eval(match(User_Agent, "MSIE"))) as "IE", count(eval(match(User_Agent, "Trident"))) as "Trident", count(eval(NOT match(User_Agent, "Chrome|Firefox|Safari|MSIE|Trident"))) as "Other" | transpose | sort by User_Agent&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I tried the above command,&amp;nbsp;&lt;SPAN&gt;it gives all data to "Other". Firefox=0, Chrome=0 IE=0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 02:52:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537528#M151970</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2021-01-28T02:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difficulty in extracting count of browser type from user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537531#M151971</link>
      <description>&lt;P&gt;Please find below image&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaibalaraman_1-1611802401173.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12706i71A7B62513C0620D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaibalaraman_1-1611802401173.png" alt="jaibalaraman_1-1611802401173.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 02:53:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537531#M151971</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2021-01-28T02:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difficulty in extracting count of browser type from user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537536#M151974</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226870"&gt;@jaibalaraman&lt;/a&gt;,&lt;BR /&gt;Regex applied in the match function is case sensitive, try this,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=aws sourcetype = * Website="*" 
| stats count(eval(match(User_Agent, "(?i)Firefox"))) as "Firefox", count(eval(match(User_Agent, "(?i)Chrome"))) as "Chrome", count(eval(match(User_Agent, "(?i)Safari"))) as "Safari", count(eval(match(User_Agent, "(?i)MSIE"))) as "IE", count(eval(match(User_Agent, "(?i)Trident"))) as "Trident", count(eval(NOT match(User_Agent, "(?i)Chrome|Firefox|Safari|MSIE|Trident"))) as "Other" 
| transpose &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 03:50:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537536#M151974</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-01-28T03:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difficulty in extracting count of browser type from user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537538#M151975</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, i tried the&amp;nbsp; SPL command and still same issue&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaibalaraman_0-1611806002584.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12708iC410138CF5CFFDA8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaibalaraman_0-1611806002584.png" alt="jaibalaraman_0-1611806002584.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 03:53:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537538#M151975</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2021-01-28T03:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difficulty in extracting count of browser type from user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537539#M151976</link>
      <description>&lt;P&gt;Can you post some sample data?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 03:54:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537539#M151976</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-01-28T03:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difficulty in extracting count of browser type from user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537718#M152027</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaibalaraman_0-1611866300077.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12727iE78460115FBC6F96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaibalaraman_0-1611866300077.png" alt="jaibalaraman_0-1611866300077.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2021 20:38:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537718#M152027</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2021-01-28T20:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difficulty in extracting count of browser type from user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537780#M152049</link>
      <description>&lt;P&gt;I mean sample raw data.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 04:02:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/537780#M152049</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-01-29T04:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difficulty in extracting count of browser type from user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/538184#M152121</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am happy to share but unfortunately i don't have access to the log file.&lt;/P&gt;&lt;P&gt;Sorry&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 22:00:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/538184#M152121</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2021-02-01T22:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difficulty in extracting count of browser type from user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/538196#M152124</link>
      <description>&lt;P&gt;Hi Splunk team&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find below image for sample log file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jaibalaraman_0-1612221570204.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12778iE6D040ADD5538549/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jaibalaraman_0-1612221570204.png" alt="jaibalaraman_0-1612221570204.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 23:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/538196#M152124</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2021-02-01T23:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difficulty in extracting count of browser type from user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/539083#M152472</link>
      <description>&lt;P&gt;Hi Team&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can any one help me on this please ??&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 03:30:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/539083#M152472</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2021-02-09T03:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Finding difficulty in extracting count of browser type from user agent</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/539086#M152473</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226870"&gt;@jaibalaraman&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your problem seems that &lt;STRONG&gt;User_Agent&lt;/STRONG&gt; field is not exist as it is or there is no event returns from search before stats command. &amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Run below search to see any results?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=aws sourcetype = * Website="*"&lt;/LI-CODE&gt;&lt;P&gt;If there is no results, please check if &lt;STRONG&gt;Website&lt;/STRONG&gt;&amp;nbsp;and &lt;STRONG&gt;User_Agent&lt;/STRONG&gt; fields are correct in Interesting Fields section. You can try again using correct field names.&amp;nbsp;Please keep in mind that the field names are case sensitive.&lt;/P&gt;&lt;P&gt;2. If above returns results, try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=aws sourcetype = * Website="*" User_Agent=*&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I think&amp;nbsp;there will be no results, please check if&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;User_Agent&lt;/STRONG&gt; field is correct in Interesting Fields section. You can try again using correct field name.&amp;nbsp;Please keep in mind that the field names are case sensitive.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 04:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Finding-difficulty-in-extracting-count-of-browser-type-from-user/m-p/539086#M152473</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-02-09T04:11:28Z</dc:date>
    </item>
  </channel>
</rss>

