<?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 How to compare two fields with every value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-fields-with-every-value/m-p/565797#M197150</link>
    <description>&lt;P&gt;Hi guys. I'm completly new to Splunk. Sorry if my question seems kinda stupid &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I have some log-data including a GUID. Those are separated in two kinds: "error" and "times". Sometimes, an error-log has the same GUID as a times-log. I need to count those double GUIDs, for that reason I have to extract the GUIDs from their original field und compare them with each other.&lt;BR /&gt;&lt;BR /&gt;I managed to extract them with Regex into two new fields. But now I'm searching for an opportunity to compare every error-GUID with every times-GUID.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Sep 2021 13:25:32 GMT</pubDate>
    <dc:creator>username13</dc:creator>
    <dc:date>2021-09-03T13:25:32Z</dc:date>
    <item>
      <title>How to compare two fields with every value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-fields-with-every-value/m-p/565797#M197150</link>
      <description>&lt;P&gt;Hi guys. I'm completly new to Splunk. Sorry if my question seems kinda stupid &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I have some log-data including a GUID. Those are separated in two kinds: "error" and "times". Sometimes, an error-log has the same GUID as a times-log. I need to count those double GUIDs, for that reason I have to extract the GUIDs from their original field und compare them with each other.&lt;BR /&gt;&lt;BR /&gt;I managed to extract them with Regex into two new fields. But now I'm searching for an opportunity to compare every error-GUID with every times-GUID.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 13:25:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-fields-with-every-value/m-p/565797#M197150</guid>
      <dc:creator>username13</dc:creator>
      <dc:date>2021-09-03T13:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two fields with every value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-fields-with-every-value/m-p/565823#M197155</link>
      <description>&lt;P&gt;Are the two GUIDs in the same event or different events?&amp;nbsp; If so, a simple &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command should find the duplicates.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | where errorGUID = timesGUID&lt;/LI-CODE&gt;&lt;P&gt;If they're in different events, then we'll need to create a common field so the &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt; command can group events.&amp;nbsp; Then keep only the results where two events have the same GUID.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | eval GUID=coalesce(errorGUID, timesGUID)
| stats count, values(*) as * by GUID
| where count=2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 15:17:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-fields-with-every-value/m-p/565823#M197155</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-03T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two fields with every value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-fields-with-every-value/m-p/566006#M197226</link>
      <description>&lt;P&gt;It worked. Thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 11:04:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-two-fields-with-every-value/m-p/566006#M197226</guid>
      <dc:creator>username13</dc:creator>
      <dc:date>2021-09-06T11:04:44Z</dc:date>
    </item>
  </channel>
</rss>

