<?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: splunk query in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/splunk-query/m-p/580978#M1448</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=active_directory OR index=cabod
| eval name=coalesce(name, cn)
| stats count by name&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 13 Jan 2022 16:21:26 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-01-13T16:21:26Z</dc:date>
    <item>
      <title>splunk query</title>
      <link>https://community.splunk.com/t5/Other-Usage/splunk-query/m-p/580953#M1445</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Thank you in advance for your help.&lt;BR /&gt;I have a query that returns results containing a list of names and another query that also returns a list containing names.&lt;BR /&gt;I would like to make a report indicating the names present in the first query but not present in the second query (delta of both queries)&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 14:09:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/splunk-query/m-p/580953#M1445</guid>
      <dc:creator>numeroinconnu12</dc:creator>
      <dc:date>2022-01-13T14:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query</title>
      <link>https://community.splunk.com/t5/Other-Usage/splunk-query/m-p/580958#M1446</link>
      <description>&lt;P&gt;There are a couple of ways to do this and it depends on your searches and data. Ideally, you can easily identify where each event comes from by something like index or sourcetype and the field names for the name field are the same in both sources. Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(index=source1 sourcetype=sourcetype1) OR (index=source2 sourcetype=sourcetype2)
| stats values(sourcetype) as sourcetype by name
| where sourcetype=sourcetype1 AND mvcount(sourcetype)==1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 14:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/splunk-query/m-p/580958#M1446</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-13T14:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query</title>
      <link>https://community.splunk.com/t5/Other-Usage/splunk-query/m-p/580972#M1447</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;, thanks foy your answer&lt;BR /&gt;&lt;BR /&gt;for more information:&lt;BR /&gt;&lt;BR /&gt;query 1:&lt;BR /&gt;index=active_directory&lt;BR /&gt;| stats count by cn&lt;BR /&gt;|rename cn as name&lt;/P&gt;&lt;P&gt;Results:&lt;BR /&gt;name&lt;BR /&gt;test&lt;BR /&gt;test1&lt;BR /&gt;test2&lt;BR /&gt;test3&lt;/P&gt;&lt;P&gt;query 2:&lt;BR /&gt;index=cabod&lt;BR /&gt;| stats count by name&lt;/P&gt;&lt;P&gt;Results&lt;BR /&gt;name&lt;BR /&gt;test1&lt;BR /&gt;test2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So I would like a query that shows me what is present in the results of query 1 but not in the results of query 2. in this case test, test3&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 15:29:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/splunk-query/m-p/580972#M1447</guid>
      <dc:creator>numeroinconnu12</dc:creator>
      <dc:date>2022-01-13T15:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: splunk query</title>
      <link>https://community.splunk.com/t5/Other-Usage/splunk-query/m-p/580978#M1448</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=active_directory OR index=cabod
| eval name=coalesce(name, cn)
| stats count by name&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 13 Jan 2022 16:21:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/splunk-query/m-p/580978#M1448</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-01-13T16:21:26Z</dc:date>
    </item>
  </channel>
</rss>

