<?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: Get the last Json Inserted document in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Get-the-last-Json-Inserted-document/m-p/149058#M185446</link>
    <description>&lt;P&gt;Great, thanks a lot. That helps. So i don't even need to mention any time modifiers. Just do head 1 and i get the latest Json.&lt;/P&gt;</description>
    <pubDate>Thu, 01 May 2014 18:25:10 GMT</pubDate>
    <dc:creator>sibbsnb</dc:creator>
    <dc:date>2014-05-01T18:25:10Z</dc:date>
    <item>
      <title>Get the last Json Inserted document</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-last-Json-Inserted-document/m-p/149055#M185443</link>
      <description>&lt;P&gt;I have an Index where i store huge Json documents. I want the last document inserted which contains the latest state. What is the most efficient command.&lt;/P&gt;

&lt;P&gt;1) tail 1 &lt;BR /&gt;
2) latest&lt;BR /&gt;
3) dedup&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2014 16:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-last-Json-Inserted-document/m-p/149055#M185443</guid>
      <dc:creator>sibbsnb</dc:creator>
      <dc:date>2014-05-01T16:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get the last Json Inserted document</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-last-Json-Inserted-document/m-p/149056#M185444</link>
      <description>&lt;P&gt;Since Splunk searches backward in time, &lt;CODE&gt;tail&lt;/CODE&gt; will give you the oldest entry rather than the latest.  I prefer to use '&lt;CODE&gt;head 1&lt;/CODE&gt;' to find the most recent event.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2014 17:14:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-last-Json-Inserted-document/m-p/149056#M185444</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-05-01T17:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get the last Json Inserted document</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-last-Json-Inserted-document/m-p/149057#M185445</link>
      <description>&lt;P&gt;If you just want one records which was inserted/indexed recently, head is the command you need. If you need last indexed records by a field (say host or user) then dedup or stats latest can be used.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2014 17:24:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-last-Json-Inserted-document/m-p/149057#M185445</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-01T17:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get the last Json Inserted document</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-last-Json-Inserted-document/m-p/149058#M185446</link>
      <description>&lt;P&gt;Great, thanks a lot. That helps. So i don't even need to mention any time modifiers. Just do head 1 and i get the latest Json.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2014 18:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-last-Json-Inserted-document/m-p/149058#M185446</guid>
      <dc:creator>sibbsnb</dc:creator>
      <dc:date>2014-05-01T18:25:10Z</dc:date>
    </item>
  </channel>
</rss>

