<?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 Getting information adjacent to a match. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Getting-information-adjacent-to-a-match/m-p/285856#M86484</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;Data example: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; MDDRJS)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have to interpret the above &lt;CODE&gt;MSIE 9.0&lt;/CODE&gt; as &lt;CODE&gt;IE 9&lt;/CODE&gt;. So far I've been able to find "MSIE" with this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Browser=if(match(User_Agent,"(?i)MSIE"),"IE",User_Agent)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I extract only the "9.0" next to MSIE?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2015 13:21:24 GMT</pubDate>
    <dc:creator>jsven7</dc:creator>
    <dc:date>2015-10-21T13:21:24Z</dc:date>
    <item>
      <title>Getting information adjacent to a match.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-information-adjacent-to-a-match/m-p/285856#M86484</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;Data example: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0; MDDRJS)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have to interpret the above &lt;CODE&gt;MSIE 9.0&lt;/CODE&gt; as &lt;CODE&gt;IE 9&lt;/CODE&gt;. So far I've been able to find "MSIE" with this search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Browser=if(match(User_Agent,"(?i)MSIE"),"IE",User_Agent)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I extract only the "9.0" next to MSIE?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 13:21:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-information-adjacent-to-a-match/m-p/285856#M86484</guid>
      <dc:creator>jsven7</dc:creator>
      <dc:date>2015-10-21T13:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Getting information adjacent to a match.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-information-adjacent-to-a-match/m-p/285857#M86485</link>
      <description>&lt;P&gt;Assuming that you have another field which contains the information, such as &lt;CODE&gt;UA_Versoin&lt;/CODE&gt;, like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Browser=if(match(User_Agent,"(?i)MSIE"),"IE",User_Agent . " " . UA_Version)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Oct 2015 13:52:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-information-adjacent-to-a-match/m-p/285857#M86485</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-21T13:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Getting information adjacent to a match.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-information-adjacent-to-a-match/m-p/285858#M86486</link>
      <description>&lt;P&gt;Oh a concatenation that's great! Now in order to put the version into the field UA_Version, how do I perform more than one action within the if statement when it is true? That way I can split the UA_Version within the same if statement.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:38:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-information-adjacent-to-a-match/m-p/285858#M86486</guid>
      <dc:creator>jsven7</dc:creator>
      <dc:date>2020-09-29T07:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting information adjacent to a match.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-information-adjacent-to-a-match/m-p/285859#M86487</link>
      <description>&lt;P&gt;You can have multiple clauses like this;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;if((((THIS) AND(THAT)) OR (SOMETHING)), "TrueText", "FalseText")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Oct 2015 15:33:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-information-adjacent-to-a-match/m-p/285859#M86487</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-10-21T15:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting information adjacent to a match.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-information-adjacent-to-a-match/m-p/285860#M86488</link>
      <description>&lt;P&gt;I love you. Thank you sir.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 15:37:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-information-adjacent-to-a-match/m-p/285860#M86488</guid>
      <dc:creator>jsven7</dc:creator>
      <dc:date>2015-10-21T15:37:02Z</dc:date>
    </item>
  </channel>
</rss>

