<?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: IIS cs_user_agent extraction in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78342#M16020</link>
    <description>&lt;P&gt;Sorry to plug my own stuff, but you might want to take a look at these:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/apps/48471/ta-browscap"&gt;TA-browscap&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/apps/48017/ta-uas_parser"&gt;TA-uas_parser&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;These are addons that do parsing on the user-agent string to get more value out of them.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Dave&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2013 20:08:55 GMT</pubDate>
    <dc:creator>dshpritz</dc:creator>
    <dc:date>2013-06-28T20:08:55Z</dc:date>
    <item>
      <title>IIS cs_user_agent extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78340#M16018</link>
      <description>&lt;P&gt;In my IIS logs i am trying to extract the OS and browser versions from the cs_USer_Agent field.  I know the cs_user_agent field is complex and confusing but is there an easy way to just extract those two values from this field?&lt;/P&gt;

&lt;P&gt;Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0) &lt;/P&gt;

&lt;P&gt;Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+2.0.50727.3603)&lt;/P&gt;

&lt;P&gt;These are two examples of the results I get from the cs_User_Agent field.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:11:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78340#M16018</guid>
      <dc:creator>JoeSco27</dc:creator>
      <dc:date>2020-09-28T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: IIS cs_user_agent extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78341#M16019</link>
      <description>&lt;P&gt;You can look around on the Internet for "IIS detect browser from user agent". You will get over a million hits, but I doubt that you will find an &lt;EM&gt;easy&lt;/EM&gt; answer.&lt;/P&gt;

&lt;P&gt;I would set up a lookup table that uses wildcards to determine the browser and OS based on user agent.&lt;/P&gt;

&lt;P&gt;The table could look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user_agent,browser,browser_version,OS
"Mozilla/4.0 (*; MSIE 6.0; Windows*",Internet Explorer,6.0,Windows
"Mozilla/5.0 (Windows;*Firefox/2.0.0.6",Firefox,2.0,Windows
"Mozilla/5.0 (Macintosh; *Chrome/5.0.375.38 Safari/533.4",Safari,5.0,Mac
"Opera/9.01 (Windows *",Opera,9.01,Windows
"Opera/9.20 (Windows *",Opera,9.2,Windows
"Mozilla/4.0 (*MSIE 7.0; Windows*",Internet Explorer,7.0,Windows
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yourlookupname]
match_type=WILDCARD(user_agent)
default_match = Not found
filename = browser_lookup.csv
max_matches = 1
min_matches = 1
case_sensitive_match = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Put as many lines in your table as you can. When  you run your reports in Splunk, the lookup will return "Not Found" for the browser and OS if the user-agent isn't in the table. When you find one of those, you can add it to the table.&lt;/P&gt;

&lt;P&gt;Even this solution is not perfect, as the authors of a browser can emit any user-agent string that they want. So multiple browsers can (and do) emit the same user-agent string.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 06:56:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78341#M16019</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-06-28T06:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: IIS cs_user_agent extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78342#M16020</link>
      <description>&lt;P&gt;Sorry to plug my own stuff, but you might want to take a look at these:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/apps/48471/ta-browscap"&gt;TA-browscap&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/apps/48017/ta-uas_parser"&gt;TA-uas_parser&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;These are addons that do parsing on the user-agent string to get more value out of them.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 20:08:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78342#M16020</guid>
      <dc:creator>dshpritz</dc:creator>
      <dc:date>2013-06-28T20:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: IIS cs_user_agent extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78343#M16021</link>
      <description>&lt;P&gt;Plug! These are great! And a lot less work than building it yourself! Sorry that I didn't check for an app before I posted an answer.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2013 22:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78343#M16021</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-06-28T22:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: IIS cs_user_agent extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78344#M16022</link>
      <description>&lt;P&gt;What is the difference between the two?  If I download only the TA-browscap and not the TA-uas_parser will it still work?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 20:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78344#M16022</guid>
      <dc:creator>JoeSco27</dc:creator>
      <dc:date>2013-07-01T20:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: IIS cs_user_agent extraction</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78345#M16023</link>
      <description>&lt;P&gt;They both work independently. The difference is in the fields that they produce, and the results. The TA-browscap produces some extra fields that might be useful for web developers, such as the browser's capabilities (javascript, activex, etc.). I couldn't decide between the two, so published both.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 20:52:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/IIS-cs-user-agent-extraction/m-p/78345#M16023</guid>
      <dc:creator>dshpritz</dc:creator>
      <dc:date>2013-07-01T20:52:31Z</dc:date>
    </item>
  </channel>
</rss>

