<?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 GET latest and previous events from a different host? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-GET-latest-and-previous-events-from-a-different-host/m-p/446938#M77766</link>
    <description>&lt;P&gt;I am not aware that i can do this , will definitely try this &lt;/P&gt;</description>
    <pubDate>Wed, 06 Jun 2018 03:48:32 GMT</pubDate>
    <dc:creator>jadengoho</dc:creator>
    <dc:date>2018-06-06T03:48:32Z</dc:date>
    <item>
      <title>How to GET latest and previous events from a different host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-GET-latest-and-previous-events-from-a-different-host/m-p/446936#M77764</link>
      <description>&lt;P&gt;Hi all , &lt;BR /&gt;
This is my problem : I have  a table with time,log  and host. &lt;BR /&gt;
sample :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host 1  &amp;lt;event log&amp;gt; 2018-06-05 23:01:30
host 2  &amp;lt;event log&amp;gt; 2018-06-05 23:01:30

host 2  &amp;lt;event log&amp;gt; 2018-06-05 23:01:29
host 3  &amp;lt;event log&amp;gt; 2018-06-05 23:01:29

host 1  &amp;lt;event log&amp;gt; 2018-06-05 23:01:28
host 3  &amp;lt;event log&amp;gt; 2018-06-05 23:01:28

host 1  &amp;lt;event log&amp;gt; 2018-06-05 23:01:27
host 2  &amp;lt;event log&amp;gt; 2018-06-05 23:01:27
host 3  &amp;lt;event log&amp;gt; 2018-06-05 23:01:27

......
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now i want to only get was the latest and the previous&lt;BR /&gt;
like this : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;LATEST
host 1    &amp;lt;event log&amp;gt; 2018-06-05 23:01:30
host 2    &amp;lt;event log&amp;gt; 2018-06-05 23:01:30
host 3    &amp;lt;event log&amp;gt; 2018-06-05 23:01:29

PREVIOUS 
host 1    &amp;lt;event log&amp;gt; 2018-06-05 23:01:28
host 2    &amp;lt;event log&amp;gt; 2018-06-05 23:01:29
host 3    &amp;lt;event log&amp;gt; 2018-06-05 23:01:28
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way or workaround to get this result ?&lt;BR /&gt;
Thanks in advance &lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 03:28:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-GET-latest-and-previous-events-from-a-different-host/m-p/446936#M77764</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2018-06-06T03:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to GET latest and previous events from a different host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-GET-latest-and-previous-events-from-a-different-host/m-p/446937#M77765</link>
      <description>&lt;P&gt;use &lt;CODE&gt;dedup&lt;/CODE&gt; command to get latest 2 events :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|dedup 2 host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jun 2018 03:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-GET-latest-and-previous-events-from-a-different-host/m-p/446937#M77765</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-06-06T03:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to GET latest and previous events from a different host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-GET-latest-and-previous-events-from-a-different-host/m-p/446938#M77766</link>
      <description>&lt;P&gt;I am not aware that i can do this , will definitely try this &lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 03:48:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-GET-latest-and-previous-events-from-a-different-host/m-p/446938#M77766</guid>
      <dc:creator>jadengoho</dc:creator>
      <dc:date>2018-06-06T03:48:32Z</dc:date>
    </item>
  </channel>
</rss>

