<?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 to split user agent details in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525926#M148433</link>
    <description>&lt;P&gt;You could start with this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rex field=useragentdetails "(?&amp;lt;useragent&amp;gt;\S+)\s+\((?&amp;lt;OSinfo&amp;gt;[^\)]+)\)\s+(?&amp;lt;platform&amp;gt;\S+)\s+\((?&amp;lt;platformdetails&amp;gt;[^\)]+)\)\s+(?&amp;lt;extensions&amp;gt;.+)"&lt;/LI-CODE&gt;&lt;P&gt;You could then use rex or split to separate the different parts of the OSinfo and extensions to extract the information you feel is important.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2020 23:07:04 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-10-21T23:07:04Z</dc:date>
    <item>
      <title>How to split user agent details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/524759#M148026</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to splunk, and I need some help with SPL query to execute the below&amp;nbsp;user agent&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log File&lt;/STRONG&gt; -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;" Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-J330G) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.3&lt;/STRONG&gt;6&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expecting output -&amp;nbsp;&lt;/P&gt;&lt;TABLE width="613"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="117px"&gt;Operating System&lt;/TD&gt;&lt;TD width="134px"&gt;Mobile Device Info&lt;/TD&gt;&lt;TD width="139px"&gt;Device Model&lt;/TD&gt;&lt;TD width="114px"&gt;Browser&amp;nbsp;&lt;/TD&gt;&lt;TD width="108px"&gt;Browser version&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="117px"&gt;Android / IOS&lt;/TD&gt;&lt;TD width="134px"&gt;Samsung/ Iphone&lt;/TD&gt;&lt;TD width="139px"&gt;Sm -J330G / I phone SE&lt;/TD&gt;&lt;TD width="114px"&gt;Chrome / Mozilla&lt;/TD&gt;&lt;TD width="108px"&gt;79.0.3945&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 03:18:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/524759#M148026</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2020-10-15T03:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to split user agent details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/524774#M148030</link>
      <description>&lt;P&gt;Can you provide more examples, preferably in a code block &amp;lt;/&amp;gt;, so we can see the correct formatting. User agent information varies quite a lot depending on device used.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 06:47:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/524774#M148030</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-15T06:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to split user agent details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525904#M148423</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry , i am new to splunk. If you can guide how do I get the requested detail in code block.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 21:01:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525904#M148423</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2020-10-21T21:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to split user agent details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525914#M148424</link>
      <description>&lt;P&gt;When you reply, open a code block with this symbol&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITWhisperer_0-1603317269692.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11432i97119571B373BE2C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITWhisperer_0-1603317269692.png" alt="ITWhisperer_0-1603317269692.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and paste some same events so we can see exactly what the events look like&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 21:55:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525914#M148424</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-21T21:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to split user agent details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525918#M148426</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Log File&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;" Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-J330G) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.3&lt;/STRONG&gt;6&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 22:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525918#M148426</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2020-10-21T22:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to split user agent details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525920#M148428</link>
      <description>&lt;P&gt;Please can you provide more examples, with different operating systems, mobile device infos, device models, browsers, browser versions, etc&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;" Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-J330G) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36 &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Oct 2020 22:14:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525920#M148428</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-21T22:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to split user agent details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525921#M148429</link>
      <description>&lt;LI-CODE lang="markup"&gt;Mozilla/5.0 (Linux; Android 5.1; HUAWEI LYO-L02) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.101 Mobile Safari/537.36&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-G975F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/12.1 Chrome/79.0.3945.136 Mobile Safari/537.36&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15 (Applebot/0.1; +http://www.apple.com/go/applebot)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt; Mozilla/5.0 (Linux; U; Android 8.1.0; zh-cn; OPPO R11s Build/OPM1.171019.011) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/70.0.3538.80 Mobile Safari/537.36 HeyTapBrowser/10.7.5.5&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Oct 2020 22:21:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525921#M148429</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2020-10-21T22:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to split user agent details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525926#M148433</link>
      <description>&lt;P&gt;You could start with this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rex field=useragentdetails "(?&amp;lt;useragent&amp;gt;\S+)\s+\((?&amp;lt;OSinfo&amp;gt;[^\)]+)\)\s+(?&amp;lt;platform&amp;gt;\S+)\s+\((?&amp;lt;platformdetails&amp;gt;[^\)]+)\)\s+(?&amp;lt;extensions&amp;gt;.+)"&lt;/LI-CODE&gt;&lt;P&gt;You could then use rex or split to separate the different parts of the OSinfo and extensions to extract the information you feel is important.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 23:07:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525926#M148433</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-21T23:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to split user agent details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525928#M148434</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the information&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I tried searching the below query , " no result found". However I am not sure am I doing it correctly.&lt;/P&gt;&lt;P&gt;Could you please guide me on this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rex field=useragentdetails "(?&amp;lt;useragent&amp;gt;\S+)\s+\((?&amp;lt;OSinfo&amp;gt;[^\)]+)\)\s+(?&amp;lt;platform&amp;gt;\S+)\s+\((?&amp;lt;platformdetails&amp;gt;[^\)]+)\)\s+(?&amp;lt;extensions&amp;gt;.+)"&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11434i43642CBC4CE5E1F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 23:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525928#M148434</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2020-10-21T23:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to split user agent details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525930#M148435</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I managed to run rex spl query , please ignore my previous message .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11435i0E9437A6A6B5260E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please guide me what spl command i should use to get as dashboard panel or visualization.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 23:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525930#M148435</guid>
      <dc:creator>jaibalaraman</dc:creator>
      <dc:date>2020-10-21T23:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to split user agent details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525980#M148455</link>
      <description>&lt;P&gt;The rex specifies a field to operate on - I assumed you had already extracted this (and called it useragentdetails. If it has been extracted to a different field then use that instead. Having said that, the event shown in your latest screenshot does not include any of the data you are interested in. Do you have any events that do? Can you paste them into a code block so we can see what you are dealing with?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 07:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/525980#M148455</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-10-22T07:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to split user agent details</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/526117#M148501</link>
      <description>&lt;P&gt;based on your second post looks like you got results&lt;BR /&gt;&lt;BR /&gt;get a stats table as desired&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your search with| rex
|table useragent, OSinfo, platform, platformdetails, extensions&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Right above Search;&amp;nbsp; You can&lt;STRONG&gt;&amp;nbsp; "save&amp;nbsp; as"&lt;/STRONG&gt; your search as a report or a&amp;nbsp; "&lt;STRONG&gt;dashboard panel"&lt;/STRONG&gt;.&amp;nbsp; as a "statistics table"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 474px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11450iEB0635E0445BEFE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 21:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-user-agent-details/m-p/526117#M148501</guid>
      <dc:creator>kennetkline</dc:creator>
      <dc:date>2020-10-22T21:15:07Z</dc:date>
    </item>
  </channel>
</rss>

