<?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: Timestamp comparison from an inputlookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timestamp-comparison-from-an-inputlookup/m-p/494573#M137863</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup lookup_name | fields key_field, timestamp_A | append [search index=index_name | stats max(timestamp_B) as timestamp_A by key_field] | stats max(timestamp_A) as timestamp_A by key_field
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Mar 2020 16:59:00 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2020-03-11T16:59:00Z</dc:date>
    <item>
      <title>Timestamp comparison from an inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timestamp-comparison-from-an-inputlookup/m-p/494572#M137862</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;
I do have cumbersome problem...I have a table built out from an inputlookup search. We have n-columns in this table but a key ones are the key_field and a timestamp_A.&lt;BR /&gt;
We would like to run a subsearch within the inputlookup where, for each value in key_field, we check the most recent value of a timestamp_B in another index. If this value is more recent than the one in timestamp_A we update the timestamp value with the B value, otherwise we leave the timestamp_A.&lt;BR /&gt;
Assuming that both timestamps are in the same format we have the following restrictions: the value in timestamp_A might be empty, in this case if exist a timestamp_B value OK otherwise we leave empty. &lt;/P&gt;

&lt;P&gt;Very much appreciated any help that could be provided.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:36:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timestamp-comparison-from-an-inputlookup/m-p/494572#M137862</guid>
      <dc:creator>DomenicoFumarol</dc:creator>
      <dc:date>2020-09-30T04:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp comparison from an inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timestamp-comparison-from-an-inputlookup/m-p/494573#M137863</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup lookup_name | fields key_field, timestamp_A | append [search index=index_name | stats max(timestamp_B) as timestamp_A by key_field] | stats max(timestamp_A) as timestamp_A by key_field
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:59:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timestamp-comparison-from-an-inputlookup/m-p/494573#M137863</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-11T16:59:00Z</dc:date>
    </item>
  </channel>
</rss>

