<?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: Rex for extracting OS types in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234370#M69659</link>
    <description>&lt;P&gt;as a refresher could you /anyone give me the spl query with rex/regex to extract these OS types with a field label name as Ostype&lt;/P&gt;

&lt;P&gt;I cannot install any TA's for this &lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2016 16:26:57 GMT</pubDate>
    <dc:creator>splgeek</dc:creator>
    <dc:date>2016-11-21T16:26:57Z</dc:date>
    <item>
      <title>Rex for extracting OS types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234368#M69657</link>
      <description>&lt;P&gt;Can someone please help me extract all different OS types from my logs. is there anyway Single rex query i can write to extract all possible OStypes &lt;/P&gt;

&lt;P&gt;I see - Windows NT, MAC OS, Linux Android 6.0, Linux Android 7.0,  ,there are few more&lt;BR /&gt;
See sample logs&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Login","XXXX","XXXXX","XXXX","XXXXX","435","66","XXXXX","/index.jsp","","","","XXXX","XXXX","Mozilla/5.0 (Linux; Android 6.0.1; SM-G900V Build/MMB29M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/XXXXX Mobile Safari/XXX","","9998.0","","XXXX","XXXXX","2016-11-17T23:59:CSCS","XXXXX",""

--

"Login","XCCXC","XXXX-XXXX-","XXX","XXX","155","12","XXXX","/services/oauth2/token","","","","XXXX","XXXX","SalesforceMobileSDK/3.1.0 android mobile/6.0.1 (SM-G900V) Salesforce1/XXX Native","","XXXXX","","XCXc","XXX-XXX-XXX-GCM-XXX","2016-11-17ScT23:59:SCSCSc","XXX",""

----
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Nov 2016 15:34:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234368#M69657</guid>
      <dc:creator>splgeek</dc:creator>
      <dc:date>2016-11-21T15:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Rex for extracting OS types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234369#M69658</link>
      <description>&lt;P&gt;This &lt;A href="https://answers.splunk.com/answers/76809/user-agent-regex.html"&gt;answer&lt;/A&gt; may help.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:04:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234369#M69658</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-11-21T16:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rex for extracting OS types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234370#M69659</link>
      <description>&lt;P&gt;as a refresher could you /anyone give me the spl query with rex/regex to extract these OS types with a field label name as Ostype&lt;/P&gt;

&lt;P&gt;I cannot install any TA's for this &lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:26:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234370#M69659</guid>
      <dc:creator>splgeek</dc:creator>
      <dc:date>2016-11-21T16:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Rex for extracting OS types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234371#M69660</link>
      <description>&lt;P&gt;Hi splgeek&lt;BR /&gt;
The following search code give you : Linux; Android 6.0.1;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="your index_name"|rex field=_raw "(?&amp;lt;myfield&amp;gt;[\w+\;\s+\w+\s+\.\d+]+\;)"|table myfield
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:40:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234371#M69660</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2016-11-21T16:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Rex for extracting OS types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234372#M69661</link>
      <description>&lt;P&gt;thanks&lt;BR /&gt;
so thats just for extracting linux?&lt;BR /&gt;
is there anyway to extract them all with 1 query?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:41:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234372#M69661</guid>
      <dc:creator>splgeek</dc:creator>
      <dc:date>2016-11-21T16:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Rex for extracting OS types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234373#M69662</link>
      <description>&lt;P&gt;Please can you extend your sample logs , for permitting me to see well your events ?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234373#M69662</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2016-11-21T16:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rex for extracting OS types</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234374#M69663</link>
      <description>&lt;P&gt;i need to see well before extracting&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 16:44:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-for-extracting-OS-types/m-p/234374#M69663</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2016-11-21T16:44:04Z</dc:date>
    </item>
  </channel>
</rss>

