<?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 compare the values with the time and host in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595069#M207072</link>
    <description>&lt;P&gt;Why is bus/600 matched when there is a host with a different number on the same day?&lt;/P&gt;&lt;P&gt;Why is car/248 not matched when there isn't another entry for the same day?&lt;/P&gt;</description>
    <pubDate>Sun, 24 Apr 2022 16:33:08 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-04-24T16:33:08Z</dc:date>
    <item>
      <title>How to compare the values with the time and host?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595065#M207069</link>
      <description>&lt;P&gt;Team,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am having a query which would result as below.&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE width="334"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="142"&gt;_time&lt;/TD&gt;
&lt;TD width="64"&gt;Host&lt;/TD&gt;
&lt;TD width="64"&gt;Name&lt;/TD&gt;
&lt;TD width="64"&gt;version&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3/2/2022&amp;nbsp; 15:22:04 PM&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;car&lt;/TD&gt;
&lt;TD&gt;248&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3/1/2022&amp;nbsp; 15:21:04 PM&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;car&lt;/TD&gt;
&lt;TD&gt;246&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3/1/2022&amp;nbsp; 15:20:07PM&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;car&lt;/TD&gt;
&lt;TD&gt;246&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3/1/2022&amp;nbsp; 15:20:03 PM&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;bus&lt;/TD&gt;
&lt;TD&gt;600&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3/1/2022&amp;nbsp; 15:19:02 PM&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;bus&lt;/TD&gt;
&lt;TD&gt;600&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2/1/2022&amp;nbsp; 15:20:03 PM&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;Toy&lt;/TD&gt;
&lt;TD&gt;600&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2/1/2022&amp;nbsp; 15:19:02 PM&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;Toy&lt;/TD&gt;
&lt;TD&gt;248&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2/1/2022&amp;nbsp; 14:19:02 PM&lt;/TD&gt;
&lt;TD&gt;2&lt;/TD&gt;
&lt;TD&gt;Toy&lt;/TD&gt;
&lt;TD&gt;248&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that i need final output like below.&lt;/P&gt;
&lt;TABLE width="424"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="142"&gt;_time&lt;/TD&gt;
&lt;TD width="64"&gt;Host&lt;/TD&gt;
&lt;TD width="64"&gt;Name&lt;/TD&gt;
&lt;TD width="64"&gt;version&lt;/TD&gt;
&lt;TD width="90"&gt;Final&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2/1/2022&amp;nbsp; 15:20:03 PM&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;Toy&lt;/TD&gt;
&lt;TD&gt;600&lt;/TD&gt;
&lt;TD&gt;Not matching&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3/1/2022&amp;nbsp; 15:20:03 PM&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;bus&lt;/TD&gt;
&lt;TD&gt;600&lt;/TD&gt;
&lt;TD&gt;Matched&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3/1/2022&amp;nbsp; 15:21:04 PM&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;car&lt;/TD&gt;
&lt;TD&gt;246&lt;/TD&gt;
&lt;TD&gt;Matched&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;3/2/2022&amp;nbsp; 15:22:04 PM&lt;/TD&gt;
&lt;TD&gt;3&lt;/TD&gt;
&lt;TD&gt;car&lt;/TD&gt;
&lt;TD&gt;248&lt;/TD&gt;
&lt;TD&gt;Not matching&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I&amp;nbsp;&lt;/SPAN&gt;am not sure to compare between columns itself. Could someone please help me out here.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 15:08:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595065#M207069</guid>
      <dc:creator>Anud</dc:creator>
      <dc:date>2022-04-25T15:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the values with the time and host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595066#M207070</link>
      <description>&lt;P&gt;What are your criteria for matching the columns?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 13:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595066#M207070</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-24T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the values with the time and host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595067#M207071</link>
      <description>&lt;P&gt;Host is the criteria.&lt;/P&gt;&lt;P&gt;We need to check host latest and earliest time in a day... accordingly thier names and version have to compare.&lt;/P&gt;&lt;P&gt;Thankyou&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 14:58:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595067#M207071</guid>
      <dc:creator>Anud</dc:creator>
      <dc:date>2022-04-24T14:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the values with the time and host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595069#M207072</link>
      <description>&lt;P&gt;Why is bus/600 matched when there is a host with a different number on the same day?&lt;/P&gt;&lt;P&gt;Why is car/248 not matched when there isn't another entry for the same day?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 16:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595069#M207072</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-24T16:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the values with the time and host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595072#M207075</link>
      <description>&lt;P&gt;Here target is to check the version for the host and their names.&lt;/P&gt;&lt;P&gt;So we have only 2hosts...final version is compared to 2and 3hosts with their same names.&lt;/P&gt;&lt;P&gt;Sometimes it takes to another day,so we need compare pervious day host latest time.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2022 17:30:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595072#M207075</guid>
      <dc:creator>Anud</dc:creator>
      <dc:date>2022-04-24T17:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the values with the time and host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595080#M207079</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eventstats dc(Host) as hosts by Name version
| stats latest(_time) as _time latest(Host) as Host by Name version hosts
| eval Final=if(hosts = 2, "Matched","Not matching")&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 24 Apr 2022 18:13:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/595080#M207079</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-04-24T18:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare the values with the time and host</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/596113#M207515</link>
      <description>&lt;P&gt;Thank you !!&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 06:58:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-compare-the-values-with-the-time-and-host/m-p/596113#M207515</guid>
      <dc:creator>Anud</dc:creator>
      <dc:date>2022-05-02T06:58:22Z</dc:date>
    </item>
  </channel>
</rss>

