<?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 check if data exist in coldidx or hotidx? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-data-exist-in-coldidx-or-hotidx/m-p/241327#M188913</link>
    <description>&lt;P&gt;thanks mate. it worked&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 10:50:38 GMT</pubDate>
    <dc:creator>koshyk</dc:creator>
    <dc:date>2016-05-09T10:50:38Z</dc:date>
    <item>
      <title>How to check if data exist in coldidx or hotidx?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-data-exist-in-coldidx-or-hotidx/m-p/241324#M188910</link>
      <description>&lt;P&gt;hi&lt;BR /&gt;
say we have an index called as "my_network".  the rollover period is 1 month to cold index. This needs to be tested by Testing team.&lt;/P&gt;

&lt;P&gt;How can they test if a particular event/bucket is existing in cold or warm/hot?  Is there a more granular way to interrogate within an _index using Search?&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 09:32:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-data-exist-in-coldidx-or-hotidx/m-p/241324#M188910</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2016-05-09T09:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if data exist in coldidx or hotidx?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-data-exist-in-coldidx-or-hotidx/m-p/241325#M188911</link>
      <description>&lt;P&gt;Look at the dbinspect command. @ &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Dbinspect"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Dbinspect&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can view the various states of the events in the index, what stage in the lifecycle of the bucket they are (hot/warm/cold/frozen) along with the metadata for the events in the buckets.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbinspect index=* splunk_server=* 
| search state="*" 
| convert ctime(endEpoch) ctime(startEpoch) 
| table bucketId state path startEpoch endEpoch
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should get you in the general direction of where you want to go.. &lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 09:49:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-data-exist-in-coldidx-or-hotidx/m-p/241325#M188911</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2016-05-09T09:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if data exist in coldidx or hotidx?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-data-exist-in-coldidx-or-hotidx/m-p/241326#M188912</link>
      <description>&lt;P&gt;You could use dbinspect but it's a non-streaming command and therefore not easy to join against streaming searches.&lt;BR /&gt;
If you are just looking to verify this for very few events then the following should work fine:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main earliest=-30d latest=-29d
| head 1
| stats max(_raw) as myraw by _time
| eval mytime = _time
| map search="
    | dbinspect index=main
    | table endEpoch, startEpoch, state
    | eval time = $mytime$
    | eval _raw = $myraw$
    | where $mytime$ &amp;gt;= startEpoch AND $mytime$ &amp;lt;= endEpoch
"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Unless somebody else comes back with an easier approach of course.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Javier&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 09:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-data-exist-in-coldidx-or-hotidx/m-p/241326#M188912</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-05-09T09:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if data exist in coldidx or hotidx?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-data-exist-in-coldidx-or-hotidx/m-p/241327#M188913</link>
      <description>&lt;P&gt;thanks mate. it worked&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 10:50:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-check-if-data-exist-in-coldidx-or-hotidx/m-p/241327#M188913</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2016-05-09T10:50:38Z</dc:date>
    </item>
  </channel>
</rss>

