<?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: Syslog extract browser type field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-extract-browser-type-field/m-p/178622#M35820</link>
    <description>&lt;P&gt;You can solve your problem in two step process:&lt;BR /&gt;&lt;BR /&gt;
 1. Extract full user agent. A simple rex command or an entry in props.conf will do. Something similar to  "\"(?P&amp;lt;UserAgent&amp;gt;[^\"]+)\"".&lt;BR /&gt;&lt;BR /&gt;
 2. Use a python script to extract detailed data from user agent string. An example of such script: &lt;A href="https://github.com/JustinAzoff/splunk-scripts/blob/master/ua2os.py"&gt;https://github.com/JustinAzoff/splunk-scripts/blob/master/ua2os.py&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Keep in mind that the python script linked might not be up to date and you might need to make additions to it for newer browsers/OS etc.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jun 2014 11:16:08 GMT</pubDate>
    <dc:creator>amitkr0201</dc:creator>
    <dc:date>2014-06-23T11:16:08Z</dc:date>
    <item>
      <title>Syslog extract browser type field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-extract-browser-type-field/m-p/178620#M35818</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I would like to extract the browser type string to some fields from Netscaler VPX syslog. Splunk doesn´t extract this user_agent field automatically. I have tried some reg expressions but no luck. Splunk receives this data events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Vserver 172.128.4.4:443 - Browser_type "Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36" - SSLVPN_client_type Clientless

Vserver 172.128.4.4:443 - Browser_type "Mozilla/5.0 (Linux; U; Android 2.3.5; es-es; GT-I9100 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobi" - SSLVPN_client_type Clientless
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I extract this client information to these fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; - os_company: The OS vendor
 - os_family: The OS family
 - os_name: The name of the OS
 - ua_build_version: The build version of the browser
 - ua_company: The user-agent vendor
 - ua_family: The user-agent family (Firefox, Safari, IE, etc.)
 - ua_major_version: Major version of the user agent
 - ua_minor_version: Minor version of the user agent
 - ua_name: Full name of the user agent
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 May 2014 08:07:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-extract-browser-type-field/m-p/178620#M35818</guid>
      <dc:creator>imorales</dc:creator>
      <dc:date>2014-05-27T08:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog extract browser type field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-extract-browser-type-field/m-p/178621#M35819</link>
      <description>&lt;P&gt;Can you post the expected values (based on your example) for these fields?&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2014 14:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-extract-browser-type-field/m-p/178621#M35819</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-27T14:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Syslog extract browser type field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syslog-extract-browser-type-field/m-p/178622#M35820</link>
      <description>&lt;P&gt;You can solve your problem in two step process:&lt;BR /&gt;&lt;BR /&gt;
 1. Extract full user agent. A simple rex command or an entry in props.conf will do. Something similar to  "\"(?P&amp;lt;UserAgent&amp;gt;[^\"]+)\"".&lt;BR /&gt;&lt;BR /&gt;
 2. Use a python script to extract detailed data from user agent string. An example of such script: &lt;A href="https://github.com/JustinAzoff/splunk-scripts/blob/master/ua2os.py"&gt;https://github.com/JustinAzoff/splunk-scripts/blob/master/ua2os.py&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Keep in mind that the python script linked might not be up to date and you might need to make additions to it for newer browsers/OS etc.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2014 11:16:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syslog-extract-browser-type-field/m-p/178622#M35820</guid>
      <dc:creator>amitkr0201</dc:creator>
      <dc:date>2014-06-23T11:16:08Z</dc:date>
    </item>
  </channel>
</rss>

