<?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: Comparing Field Names and Values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Comparing-Field-Names-and-Values/m-p/151645#M42469</link>
    <description>&lt;P&gt;You probably want to look at a certain SID in the events, either the first or the second, and compare that SID across events. Since the Security_ID is present more than once in these events, Splunk creates what is called a multivalued field. The individual values of the field can be accessed with various functions. You can then build so-called &lt;CODE&gt;transactions&lt;/CODE&gt; based on this, e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search for events | eval sid2 = mvindex(Security_ID, 1) | transaction sid2 maxpause=5s 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Read more here;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/SearchReference/Transaction"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.1/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonEvalFunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2014 21:18:46 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2014-02-14T21:18:46Z</dc:date>
    <item>
      <title>Comparing Field Names and Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-Field-Names-and-Values/m-p/151644#M42468</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've run into a problem: Splunk ingests Window's security events in such a way that field names may occur more than once and have different values assigned.  (&lt;EM&gt;e.g.,&lt;/EM&gt; 'Security_ID' can equate to any of the following: alpha-numeric account SID, actual account name, or even account group) I want to compose a search that compares the SIDs from two different events and gives results if a match is found.  Something like:&lt;/P&gt;

&lt;P&gt;Search for two events, A &amp;amp; B, occurring within 5 seconds of each other, where A possesses an alpha-numeric SID that exactly matches an alpha-numeric SID listed in event B.  &lt;/P&gt;

&lt;P&gt;The alpha-numeric value is not known in advance.  Any insight on how to do this?  Your help is much appreciated!&lt;/P&gt;

&lt;P&gt;-Dave &lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 18:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-Field-Names-and-Values/m-p/151644#M42468</guid>
      <dc:creator>dctopper</dc:creator>
      <dc:date>2014-02-14T18:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Field Names and Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-Field-Names-and-Values/m-p/151645#M42469</link>
      <description>&lt;P&gt;You probably want to look at a certain SID in the events, either the first or the second, and compare that SID across events. Since the Security_ID is present more than once in these events, Splunk creates what is called a multivalued field. The individual values of the field can be accessed with various functions. You can then build so-called &lt;CODE&gt;transactions&lt;/CODE&gt; based on this, e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search for events | eval sid2 = mvindex(Security_ID, 1) | transaction sid2 maxpause=5s 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Read more here;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/SearchReference/Transaction"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.1/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonEvalFunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 21:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-Field-Names-and-Values/m-p/151645#M42469</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-02-14T21:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Field Names and Values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-Field-Names-and-Values/m-p/151646#M42470</link>
      <description>&lt;P&gt;Exactly what I needed - thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2014 13:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-Field-Names-and-Values/m-p/151646#M42470</guid>
      <dc:creator>dctopper</dc:creator>
      <dc:date>2014-02-18T13:41:04Z</dc:date>
    </item>
  </channel>
</rss>

