<?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 differences in the same field depending on the row grouping field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Comparing-differences-in-the-same-field-depending-on-the-row/m-p/684251#M233580</link>
    <description>&lt;LI-CODE lang="markup"&gt;| stats count by query&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 15 Apr 2024 14:35:40 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-04-15T14:35:40Z</dc:date>
    <item>
      <title>Comparing differences in the same field depending on the row grouping field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-differences-in-the-same-field-depending-on-the-row/m-p/684237#M233571</link>
      <description>&lt;P&gt;I'll try to explain it with a basic example. As an output of a stats command I have:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;detection&lt;/TD&gt;&lt;TD width="50%"&gt;query&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;search1&lt;/TD&gt;&lt;TD width="50%"&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;google.com&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;yahoo.com&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;search2&lt;/TD&gt;&lt;TD width="50%"&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;google.com&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;bing.com&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get which queries are not being detected by both search1 and search 2. Or else, getting rid of the queries that are in both searches, either way work. Like ok, search1 is detecting yahoo.com whereas search2 isn't, and viceversa with bing.com&lt;BR /&gt;&lt;BR /&gt;I thought about grouping by query instead of by search,&amp;nbsp; the problem is I have dozens or even hundreds of queries.&lt;BR /&gt;&lt;BR /&gt;Any thoughts? Cheers&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 12:28:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-differences-in-the-same-field-depending-on-the-row/m-p/684237#M233571</guid>
      <dc:creator>jo54</dc:creator>
      <dc:date>2024-04-15T12:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing differences in the same field depending on the row grouping field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-differences-in-the-same-field-depending-on-the-row/m-p/684251#M233580</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats count by query&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Apr 2024 14:35:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-differences-in-the-same-field-depending-on-the-row/m-p/684251#M233580</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-15T14:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing differences in the same field depending on the row grouping field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-differences-in-the-same-field-depending-on-the-row/m-p/684275#M233596</link>
      <description>&lt;P&gt;You could stats count by query. Queries that are found by both detections will have count=2, while queries that are found by only one will have count=1. Then you can filter for count=1 to remove the hundreds of queries that are found by both detections.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count by query
| where count = 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 20:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-differences-in-the-same-field-depending-on-the-row/m-p/684275#M233596</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-04-15T20:01:47Z</dc:date>
    </item>
  </channel>
</rss>

