<?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 version number for multiple hosts in index in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Comparing-version-number-for-multiple-hosts-in-index/m-p/576773#M201013</link>
    <description>&lt;P&gt;That search worked, but I was looking more for a line by line comparison. After taking a step back yesterday I came up with the following that gave me the results I was looking for.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo sourcetype=Evaluate HOST_FQDN=* 
| join type=left HOST_FQDN SCAN 
   [search index=foo sourcetype=Authoritative HOST_FQDN=* 
   | rename sourcetype as "Authoritative Source File", Version as "Authoritative Version"] 
| rename source as "Evaluate Source File", Version as "Evaluate Version"
| table _time, HOST_FQDN, SCAN, "Evaluate Source File", "Evaluate Version", "Authoritative Source File", "Authoritative Version" 
| dedup HOST_FQDN STIG​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 16:17:27 GMT</pubDate>
    <dc:creator>pl2345</dc:creator>
    <dc:date>2021-11-30T16:17:27Z</dc:date>
    <item>
      <title>Comparing version number for multiple hosts in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-version-number-for-multiple-hosts-in-index/m-p/576647#M200958</link>
      <description>&lt;P&gt;I have an index that ingests scan files and assigns a sourcetype based on the folder location. There are several scans for each host, which caused some issues when I tried to join or append.&lt;/P&gt;&lt;P&gt;I'm trying to build&amp;nbsp; a search that takes the host, scan, and version in one folder and compares it against the host, scan, and version in the other and create a table with the host, evaluate scan and version, and authoritative scan and version and tell me if we have the most up to date scans in the authoritative folder. What's the best method to create this search?&lt;/P&gt;&lt;P&gt;Example data:&lt;/P&gt;&lt;P&gt;HOST_FQDN: Host1&lt;/P&gt;&lt;P&gt;sourcetype: Evaluate&lt;/P&gt;&lt;P&gt;SCAN: IE11&lt;/P&gt;&lt;P&gt;Version: 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HOST_FQDN: Host1&lt;/P&gt;&lt;P&gt;sourcetype: Authoritative&lt;/P&gt;&lt;P&gt;SCAN: IE11&lt;/P&gt;&lt;P&gt;Version: 3&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 19:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-version-number-for-multiple-hosts-in-index/m-p/576647#M200958</guid>
      <dc:creator>pl2345</dc:creator>
      <dc:date>2021-11-29T19:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing version number for multiple hosts in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-version-number-for-multiple-hosts-in-index/m-p/576657#M200961</link>
      <description>&lt;P&gt;To find instances where the Evaluate version differs from the Authoritative version, try this query.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo HOST_FQDN=* (sourcetype=Evaluate OR sourcetype=Authoritative) SCAN=* Version=*
| stats values(HOST_FQDN) as HOST_FQDN, list(sourcetype) as sourcetype, list(Version) as Version by SCAN&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 29 Nov 2021 20:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-version-number-for-multiple-hosts-in-index/m-p/576657#M200961</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-11-29T20:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing version number for multiple hosts in index</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Comparing-version-number-for-multiple-hosts-in-index/m-p/576773#M201013</link>
      <description>&lt;P&gt;That search worked, but I was looking more for a line by line comparison. After taking a step back yesterday I came up with the following that gave me the results I was looking for.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=foo sourcetype=Evaluate HOST_FQDN=* 
| join type=left HOST_FQDN SCAN 
   [search index=foo sourcetype=Authoritative HOST_FQDN=* 
   | rename sourcetype as "Authoritative Source File", Version as "Authoritative Version"] 
| rename source as "Evaluate Source File", Version as "Evaluate Version"
| table _time, HOST_FQDN, SCAN, "Evaluate Source File", "Evaluate Version", "Authoritative Source File", "Authoritative Version" 
| dedup HOST_FQDN STIG​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 16:17:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Comparing-version-number-for-multiple-hosts-in-index/m-p/576773#M201013</guid>
      <dc:creator>pl2345</dc:creator>
      <dc:date>2021-11-30T16:17:27Z</dc:date>
    </item>
  </channel>
</rss>

