<?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: Why am I unable to search previously indexed data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140271#M38712</link>
    <description>&lt;P&gt;Whatere events were returned by the same command without the &lt;CODE&gt;| delete&lt;/CODE&gt; command will all be deleted when yoi tack that on so all events from that source are now gone.  So that explains everything, right?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2015 13:06:36 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-06-03T13:06:36Z</dc:date>
    <item>
      <title>Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140266#M38707</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;My splunk has indexed some data today. However, I am not able to search the previously indexed data anymore. For example, I am doing a search &lt;CODE&gt;source="log.2015-05-31"&lt;/CODE&gt;, it didn't show up any events, but it was able to show events on my previous report. When I change a search to &lt;CODE&gt;source="log.2015-06-01"&lt;/CODE&gt;, it does show the events, but not in my report. Thus my report can only show the result until 31-05-2015.&lt;/P&gt;

&lt;P&gt;Is there any permission issue during search? I only made changes to admin role to inherit can_delete. &lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 14:08:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140266#M38707</guid>
      <dc:creator>cykuan</dc:creator>
      <dc:date>2015-06-02T14:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140267#M38708</link>
      <description>&lt;P&gt;How big is your index space (in &lt;CODE&gt;indexes.conf&lt;/CODE&gt;)?  Splunk will automatically expire data (FIFO) and if you have a very small amount of space for you index, it could have already aged out.  Use this search to check your retentions:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd bucketmover "will attempt to freeze" | rex "/splunk(?:/[^/]*)?/(?&amp;lt;indexname&amp;gt;[^/]*)/db/db_(?&amp;lt;newestTime&amp;gt;[^_]*)_(?&amp;lt;oldestTime&amp;gt;[^_]*)_.*" | dedup indexname | eval retentionDays=(now()-oldestTime)/(60*60*24) | stats values(retentionDays) as retentionDays by indexname
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Jun 2015 17:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140267#M38708</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-02T17:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140268#M38709</link>
      <description>&lt;P&gt;Hi Woodcock,&lt;/P&gt;

&lt;P&gt;Below is my Splunk indexes.conf, and when I run your search command that you provided, the retention days is around 34.857905.&lt;/P&gt;

&lt;P&gt;maxTotalDataSizeMB = 500000&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 02:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140268#M38709</guid>
      <dc:creator>cykuan</dc:creator>
      <dc:date>2015-06-03T02:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140269#M38710</link>
      <description>&lt;P&gt;By any chance, are you using &lt;CODE&gt;| delete&lt;/CODE&gt; somewhere to delete your events?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 03:31:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140269#M38710</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-03T03:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140270#M38711</link>
      <description>&lt;P&gt;Hi Woodcock,&lt;/P&gt;

&lt;P&gt;Yes, I did a &lt;CODE&gt;|delete&lt;/CODE&gt; before to delete one event.&lt;/P&gt;

&lt;P&gt;I did a &lt;CODE&gt;source="log.2015-05-22" | delete&lt;/CODE&gt;, will this affect my whole result? I thought I only delete this event, and the other event should be able to display.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 05:33:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140270#M38711</guid>
      <dc:creator>cykuan</dc:creator>
      <dc:date>2015-06-03T05:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140271#M38712</link>
      <description>&lt;P&gt;Whatere events were returned by the same command without the &lt;CODE&gt;| delete&lt;/CODE&gt; command will all be deleted when yoi tack that on so all events from that source are now gone.  So that explains everything, right?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 13:06:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140271#M38712</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-03T13:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140272#M38713</link>
      <description>&lt;P&gt;I understand, I only deleted &lt;CODE&gt;source="log.2015-05-22"&lt;/CODE&gt;, but other source like&lt;CODE&gt;source="log.2015-05-23"&lt;/CODE&gt;or &lt;CODE&gt;source="log.2015-06-01"&lt;/CODE&gt; should not be deleted and able to display the event, am I right?&lt;/P&gt;

&lt;P&gt;If I want to re-index back, what should I do? I have already tried to re-index the &lt;CODE&gt;source="log.2015-05-22"&lt;/CODE&gt;, but there is no event showing anymore for this source.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 13:57:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140272#M38713</guid>
      <dc:creator>cykuan</dc:creator>
      <dc:date>2015-06-03T13:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140273#M38714</link>
      <description>&lt;P&gt;If you edit the file and swap the first 2 lines (move the top line down 1 line), it should re-index the file.  The rest of what you are saying makes no sense unless you accidentally deleted more than you think you did.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:19:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140273#M38714</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-03T14:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140274#M38715</link>
      <description>&lt;P&gt;Just to be safe, try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-90d@d source="log.2015-05-31"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If that works, your issue is just the time range of your search.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:26:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140274#M38715</guid>
      <dc:creator>jacobwilkins</dc:creator>
      <dc:date>2015-06-03T14:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140275#M38716</link>
      <description>&lt;P&gt;I know it sound weird, but it actually happen to me. For example, I put in a new log file(/home/user/cdr/chat.log.2015-06-02), when I try to do a search &lt;CODE&gt;source="/home/user/cdr/chat.cdr.2015-06-02"&lt;/CODE&gt;, there is no result at all. Any comments?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:43:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140275#M38716</guid>
      <dc:creator>cykuan</dc:creator>
      <dc:date>2015-06-03T14:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140276#M38717</link>
      <description>&lt;P&gt;I have tried this, but still the same, no result at all.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 14:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140276#M38717</guid>
      <dc:creator>cykuan</dc:creator>
      <dc:date>2015-06-03T14:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140277#M38718</link>
      <description>&lt;P&gt;Do this search for "All Time" just to make sure the events are not timestamped "in the future" or something way off from what you expect:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval lagSecs=(_indextime - _time) | stats count avg(lagSecs) BY source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jun 2015 15:33:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140277#M38718</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-03T15:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140278#M38719</link>
      <description>&lt;P&gt;Hi Woodcock,&lt;/P&gt;

&lt;P&gt;I have tried the command you provided, and it's able to show some of the index files. The result only show log.2015-05-22 until log.2015-05-31. Since my oldest log file is log.2015-05-22, hence the result display is correct. However, my latest indexed file should display log.2015-06-02, unfortunately, it doesn't show up.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 16:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140278#M38719</guid>
      <dc:creator>cykuan</dc:creator>
      <dc:date>2015-06-03T16:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140279#M38720</link>
      <description>&lt;P&gt;Did you run it for "All Time"?  This is very important (otherwise "future" events will not be found).&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 16:56:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140279#M38720</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-03T16:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140280#M38721</link>
      <description>&lt;P&gt;Yes, after I run the command for "All time", the source display all the log which  start from log.2015-05-22 until log.2015-06-02. Since the log file of 2015-06-02 has been indexed, why I can't see the statistic display on my report? My report only show the statistic start from 2015-05-22 until 2015-05-31 only.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 02:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140280#M38721</guid>
      <dc:creator>cykuan</dc:creator>
      <dc:date>2015-06-04T02:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140281#M38722</link>
      <description>&lt;P&gt;OK, based on what you just wrote, the problem is now clear: you have a &lt;CODE&gt;tomestamp&lt;/CODE&gt; peoblem that is putting nowish/newish events into the future.  Such events are only searchable with &lt;CODE&gt;All time&lt;/CODE&gt;.  The problem is probably  timezone related.  This search will help you focus in on and track the problem.  You need to get the numbers in the range of 100-1000 (typical):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval lagSecs=(_indextime - _time) | stats count avg(lagSecs) BY source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2015 03:11:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140281#M38722</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-04T03:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140282#M38723</link>
      <description>&lt;P&gt;Hi Woodcock,&lt;/P&gt;

&lt;P&gt;Yes, after I did a "All Time", it does show all my logs with the latest log display(log.2015-06-02). But it is weird when I look on the lagSecs column, for the log from 2015-05-22 until 2015-05-31 (legSec2 is around 200000~1000000) but lagSecs for log 2015-06-01 until 2015-06-02 is very huge (12000000~10000000). Is this the reason that caused the Splunk can't show the event of 2015-06-01 onward?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 08:36:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140282#M38723</guid>
      <dc:creator>cykuan</dc:creator>
      <dc:date>2015-06-04T08:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140283#M38724</link>
      <description>&lt;P&gt;Hi Woodcock,&lt;/P&gt;

&lt;P&gt;Yes, after I did a "All Time", it does show all my logs with the latest log display(log.2015-06-02). But it is weird when I look on the lagSecs column, for the log from 2015-05-22 until 2015-05-31 (legSec2 is around 200000~1000000) but lagSecs for log 2015-06-01 until 2015-06-02 is very huge (12000000~10000000). &lt;/P&gt;

&lt;P&gt;On my search command, I always search as a "All Time" period. For example, my log file has a keyword "Call_successful", then I put this keyword on the search bar and click "All Time". My first page of the first event is showing the log event of 2015-05-31 but the last page is showing log event of 2015-06-02. I noticed on the Time column the time format is different, for log event of 2015-05-31 the time format is 5/22/15 12:46:04.000 PM but for  log event of 2015-06-02 is 2/6/15 11:49:23.000 PM, I believe this caused the time order mismatch, is there anyway to fix it?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 10:31:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140283#M38724</guid>
      <dc:creator>cykuan</dc:creator>
      <dc:date>2015-06-04T10:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140284#M38725</link>
      <description>&lt;P&gt;Yes, you need to explicitly tell Splunk where the correct timestamp is using the &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; directive.  You can create a &lt;CODE&gt;RegEx&lt;/CODE&gt; for it that is flexible (e.g. use the 5th field if it exists but if not, use the 4th field).&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 13:48:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140284#M38725</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-06-04T13:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to search previously indexed data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140285#M38726</link>
      <description>&lt;P&gt;Hi Woodcock,&lt;/P&gt;

&lt;P&gt;In this case if I want to change the _time format to 5/22/15,  as I highlighted as red color, please refer the screenshot (&lt;A href="http://imgur.com/cGtFMdu"&gt;http://imgur.com/cGtFMdu&lt;/A&gt;). Some of my event has a different _time format, that's is the reason why it can't show the 1st Jun 2015 event, it is because the format is different from May, when you look at the screenshot then you will have a clear picture for my issue. I want to have _time with a same format, so it can display correct date when I do a timechart span=1d command.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2015 16:19:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-unable-to-search-previously-indexed-data/m-p/140285#M38726</guid>
      <dc:creator>cykuan</dc:creator>
      <dc:date>2015-06-04T16:19:51Z</dc:date>
    </item>
  </channel>
</rss>

