<?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: How to join two queries and show not contain value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-queries-and-show-not-contain-value/m-p/695071#M236374</link>
    <description>&lt;P&gt;You could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where index=_internal OR index=* NOT [search index="_internal" source="*metrics.log*" group=tcpin_connections
| stats count by hostname | rename hostname as host | table host] BY host&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 02 Aug 2024 11:10:26 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-08-02T11:10:26Z</dc:date>
    <item>
      <title>How to join two queries and show not contain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-queries-and-show-not-contain-value/m-p/695059#M236367</link>
      <description>&lt;P&gt;Good day, I am pretty new to Splunk and want a way to join two queries together.&lt;BR /&gt;&lt;BR /&gt;Query 1 - Gives me all of my assets&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats count where index=_internal OR index=* BY host&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Query 2 - Give me all of my devices that ingest into the forwarder&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="_internal" source="*metrics.log*" group=tcpin_connections
| dedup hostname
| table date_hour, date_minute, date_mday, date_month, date_year, hostname, sourceIp, fwdType ,guid ,version ,build ,os ,arch
| stats count&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How can I join this to create a query that will find all my devices (query1) and check if they have the forwarder installed(query2) and show me the results of devices that are not in query 2?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 13:53:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-queries-and-show-not-contain-value/m-p/695059#M236367</guid>
      <dc:creator>JandrevdM</dc:creator>
      <dc:date>2024-08-02T13:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two queries and show not contain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-queries-and-show-not-contain-value/m-p/695061#M236368</link>
      <description>&lt;P&gt;The count is just used in my dashboard view and will be removed in initial query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 09:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-queries-and-show-not-contain-value/m-p/695061#M236368</guid>
      <dc:creator>JandrevdM</dc:creator>
      <dc:date>2024-08-02T09:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two queries and show not contain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-queries-and-show-not-contain-value/m-p/695071#M236374</link>
      <description>&lt;P&gt;You could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where index=_internal OR index=* NOT [search index="_internal" source="*metrics.log*" group=tcpin_connections
| stats count by hostname | rename hostname as host | table host] BY host&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Aug 2024 11:10:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-queries-and-show-not-contain-value/m-p/695071#M236374</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-02T11:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two queries and show not contain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-queries-and-show-not-contain-value/m-p/695101#M236390</link>
      <description>&lt;P&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;I tried different ways but am unable to get this, if I want to add a line to check if the device is an azure VM how would I do this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;| tstats count where index=_internal OR index=* NOT [search index="_internal" source="*metrics.log*" group=tcpin_connections
| stats count by hostname | rename hostname as host | table host] BY host&lt;/PRE&gt;
&lt;P&gt;AND&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[ search index=db_cloud sourcetype="azure:compute:vm:instanceView"
| rename host as host_changed
| table host_changed] BY host&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I tried this but it does not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 13:52:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-queries-and-show-not-contain-value/m-p/695101#M236390</guid>
      <dc:creator>JandrevdM</dc:creator>
      <dc:date>2024-08-02T13:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two queries and show not contain value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-queries-and-show-not-contain-value/m-p/695102#M236391</link>
      <description>&lt;P&gt;Have you tried it this way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where index=_internal OR index=* [ search index=db_cloud sourcetype="azure:compute:vm:instanceView"
| stats count by host
| table host ] NOT [search index="_internal" source="*metrics.log*" group=tcpin_connections
| stats count by hostname | rename hostname as host | table host] BY host&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Aug 2024 14:07:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-queries-and-show-not-contain-value/m-p/695102#M236391</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-02T14:07:01Z</dc:date>
    </item>
  </channel>
</rss>

