<?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: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472178#M81156</link>
    <description>&lt;P&gt;You have incredible latency between the time events were actually indexed on your indexer(s) (_indextime) and the time that Splunk parsed out (the standard _time). Were you indexing historical logs, or are these logs supposed to be ingested in real-time? &lt;/P&gt;

&lt;P&gt;The second answer does not make sense to me. If your _indextime and _time are that far off, I would not expect you to see the same gaps in both _time and _indextime. You may just have a few outliers that are throwing it off.&lt;/P&gt;

&lt;P&gt;This will be difficult for us to help you with without more information. Could you share some sample events? This will show us your biggest outliers. Be sure to censor all sensitive information. The only information we really need are _indextime, _time, and the time in your _raw event from the search below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;your index&amp;gt;
| eval latency_mins = round(abs(_indextime - _time)/60),
       indextime = strftime(_indextime, "%Y-%m-%d %H:%M:%S")
| table _time indextime latency_mins index sourcetype _raw
| sort 0 - latency
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the time is at the beginning of the _raw event, you can add something like this to eliminate the sensitive information (change the 30 so that the full time is visible):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _raw = substr(_raw, 0, 30)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's the documentation on what I'm trying to get at: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Feb 2020 15:59:02 GMT</pubDate>
    <dc:creator>jacobpevans</dc:creator>
    <dc:date>2020-02-15T15:59:02Z</dc:date>
    <item>
      <title>Why does splunk show no logs at a particular time frame in day when searched on the specific index and sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472174#M81152</link>
      <description>&lt;P&gt;I have a clustered splunk environment and monitoring in place for quite a few application logs.&lt;BR /&gt;Lately , I have been encountering an issue with data collection in Splunk .&lt;/P&gt;
&lt;P&gt;For some frame of time everyday(2 to 5 hours) , I do not see any data even though the application server has logs generated.&lt;BR /&gt;But for the rest of the day it works just fine .&lt;/P&gt;
&lt;P&gt;Universal Forwarders and indexers are working just fine.&lt;BR /&gt;This is affecting the dashboards and alerts , as the data is been missed out .&lt;/P&gt;
&lt;P&gt;Example log:&lt;BR /&gt;2020-02-13T05:01:45.249-0500 INFO 801 | UNIQ_ID=20200213050500000170151fda6c-171dcee | TRANS_ID=000001da6c-171dce8 | VERSION=1.09 | TYPE=AUDIT | INTERNAL_ERROR_MSG= | UTC_ENTRY=2020-02-13T10:05.178Z | UTC_EXIT=2020-02-13T10:01:45.230Z,"Timestamp":"2020-02-13T10:01:45.062Z","Organization":"abc","Region":"RStS","ApplicationName":"Anoid"},"Data":{"rsCommand":"Clization","rsStatus":"executed","statusTimeStamp":"2020-02-13T09:57:13.000Z","rsStatusReason":"executed","lastRemoTimeStamp":"2020-02-13T09:57:29.000Z","rsMinutesRemaining":"6","remoDuration":"10","interTemperature":"12","interTimeStamp":"2020-02-13T10:00:20.000Z","Successful Execution"}}&lt;/P&gt;
&lt;P&gt;Can anyone give some insight ,If you have faced or come across this kind of issue.&lt;BR /&gt;I suspect Splunk is getting confused with the time format of the actual event and the time and year value format inside the event like status time stamp , last remo timestamp in the example log above.. But doesn't help me how to go about and solve this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 14:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472174#M81152</guid>
      <dc:creator>sujithkumarkb12</dc:creator>
      <dc:date>2022-10-07T14:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472175#M81153</link>
      <description>&lt;P&gt;What is the output of this query? (Last 24 hours or whenever you have the missing data)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;your index&amp;gt;
| eval latency = abs(_indextime - _time)
| stats max(latency) as max_latency by sourcetype
| sort 0 - max_latency
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does this line chart have the same gaps you see in your original search?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;your index&amp;gt;
| eval _time = _indextime
| timechart count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Feb 2020 20:43:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472175#M81153</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2020-02-14T20:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472176#M81154</link>
      <description>&lt;P&gt;@jacobevans  , thanks for the response .&lt;/P&gt;

&lt;P&gt;I could not share the entire response , few i have pasted below&lt;/P&gt;

&lt;P&gt;sourcetype  max_latency&lt;BR /&gt;
abc                   4492800.0000&lt;BR /&gt;
def                   3486215.000&lt;BR /&gt;
ghi                   3196800.3570&lt;BR /&gt;
jkl                    3196798.3560&lt;BR /&gt;
mno                 1814345.000&lt;BR /&gt;
pqr                    777648.3730&lt;/P&gt;

&lt;P&gt;Also , i see the same gaps in the line chart from the below search you gave .&lt;BR /&gt;
index=&lt;BR /&gt;
 | eval _time = _indextime&lt;BR /&gt;
 | timechart count&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 06:51:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472176#M81154</guid>
      <dc:creator>sujithkumarkb12</dc:creator>
      <dc:date>2020-02-15T06:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472177#M81155</link>
      <description>&lt;P&gt;Try this in your props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mySourcetype]
TIME_PREFIX=^
TIME_FORMAT=%Y-%m-%dT%H:%M:%S.%N3%z 
MAX_TIMESTAMP_LOOKAHEAD = 28
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Feb 2020 09:31:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472177#M81155</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-15T09:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472178#M81156</link>
      <description>&lt;P&gt;You have incredible latency between the time events were actually indexed on your indexer(s) (_indextime) and the time that Splunk parsed out (the standard _time). Were you indexing historical logs, or are these logs supposed to be ingested in real-time? &lt;/P&gt;

&lt;P&gt;The second answer does not make sense to me. If your _indextime and _time are that far off, I would not expect you to see the same gaps in both _time and _indextime. You may just have a few outliers that are throwing it off.&lt;/P&gt;

&lt;P&gt;This will be difficult for us to help you with without more information. Could you share some sample events? This will show us your biggest outliers. Be sure to censor all sensitive information. The only information we really need are _indextime, _time, and the time in your _raw event from the search below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;your index&amp;gt;
| eval latency_mins = round(abs(_indextime - _time)/60),
       indextime = strftime(_indextime, "%Y-%m-%d %H:%M:%S")
| table _time indextime latency_mins index sourcetype _raw
| sort 0 - latency
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the time is at the beginning of the _raw event, you can add something like this to eliminate the sensitive information (change the 30 so that the full time is visible):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _raw = substr(_raw, 0, 30)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's the documentation on what I'm trying to get at: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 15:59:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472178#M81156</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2020-02-15T15:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472179#M81157</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/23295"&gt;@nickhills&lt;/a&gt;  , I have this configuration in the props already .&lt;BR /&gt;
[mysourcetype]&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)\d{4}-\d\d&lt;BR /&gt;
MAX_EVENTS=1000&lt;BR /&gt;
TRUNCATE=10000&lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%3N%Z&lt;/P&gt;

&lt;P&gt;What's surprising for me is that I can see logs getting ingested at 2 to 8 AM timeframe .&lt;BR /&gt;
but later in the day I do not see them at all .&lt;/P&gt;

&lt;P&gt;Is the Line break affecting here ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:14:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472179#M81157</guid>
      <dc:creator>sujithkumarkb12</dc:creator>
      <dc:date>2020-09-30T04:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472180#M81158</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/182087"&gt;@jacobpevans&lt;/a&gt; , let me break it down some more as in for 16th Feb 2020&lt;BR /&gt;
The sourcetype I am facing issue is say ABC , latency value for that is 59.846 .&lt;BR /&gt;
The linechart has gaps in it for a particular time frame that is 12 am to 7 am &lt;/P&gt;

&lt;P&gt;_time                                         indextime latency_mins        _raw&lt;BR /&gt;
2020-02-16 10:56:46.856 2020-02-16 10:56:47 0       2020-02-16T10:56:46.856-0500 INFO&lt;BR /&gt;&lt;BR /&gt;
2020-02-16 10:56:46.792 2020-02-16 10:56:47 0       2020-02-16T10:56:46.792-0500 INFO&lt;BR /&gt;&lt;BR /&gt;
2020-02-16 10:56:46.617 2020-02-16 10:56:47 0       2020-02-16T10:56:46.617-0500 INFO&lt;BR /&gt;&lt;BR /&gt;
2020-02-16 10:56:46.562 2020-02-16 10:56:47 0       2020-02-16T10:56:46.562-0500 INFO&lt;BR /&gt;&lt;BR /&gt;
2020-02-16 10:56:46.395 2020-02-16 10:56:47 1       2020-02-16T10:56:46.395-0500 INFO&lt;BR /&gt;&lt;BR /&gt;
2020-02-16 10:56:46.381 2020-02-16 10:56:47 1       2020-02-16T10:56:46.381-0500 INFO&lt;BR /&gt;&lt;BR /&gt;
2020-02-16 10:56:46.129 2020-02-16 10:56:47 1       2020-02-16T10:56:46.129-0500 INFO&lt;BR /&gt;&lt;BR /&gt;
2020-02-16 10:56:46.126 2020-02-16 10:56:47 1       2020-02-16T10:56:46.126-0500 INFO&lt;BR /&gt;&lt;BR /&gt;
2020-02-16 10:56:46.085 2020-02-16 10:56:47 1       2020-02-16T10:56:46.085-0500 INFO  &lt;/P&gt;

&lt;P&gt;Logs : &lt;BR /&gt;
2020-02-16T14:51:07.112-0500 INFO    209 ABC.splunk.log: -4: | UNIQ_ID=2d-228523f | TRANS_ID=0000285235 | CLIENT_IP=123.34.45.7.67.56 | API_KEY=5f1c42727678a| ROUTING_CODE=Routed_200 | RESPONSE_ERROR_CODE=0 | RESPONSE_HTTP_CODE=200 | STATUS_MESSAGE=Message processed successfully_ | HTTP_BACKEND_CODE=200 | HTTP_EPAT_CODE= | HTTP_GUA_CODE= | HTTP_TCU_CODE= | INTERNAL_ERROR_MSG= | UTC_ENTRY=2020-02-16T19:51:06.985Z | UTC_EXIT=2020-02-16T19:51:07.103Z | REQUEST_PAYLOAD={"Data":{"AccountID":"46035002"}} | RESPONSE_PAYLOAD={"Data","Response":{"ResponseCode":"2000","ResponseStatus":"Success","ResponseDescription":"Successful Execution"}}&lt;/P&gt;

&lt;P&gt;All the logs have the first time stamp (_raw) which ends with INFO and UTC_ENTRY and exit .&lt;BR /&gt;
Which has almost 5 hours of difference which is the same time the data is missing .&lt;/P&gt;

&lt;P&gt;And these format of logs are generated at only this time . early morning to be specific&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:14:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472180#M81158</guid>
      <dc:creator>sujithkumarkb12</dc:creator>
      <dc:date>2020-09-30T04:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472181#M81159</link>
      <description>&lt;P&gt;You shouldn't need the line_breaker or linemerge if its finding the time properly, but make sure you set the lookahead to 28. This tells Splunk that the timestamp you care about is in the first 28 characters (and to ignore anything else that looks like a timestamp deeper in the event)&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 10:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472181#M81159</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-18T10:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472182#M81160</link>
      <description>&lt;P&gt;@nickhillscpl , I applied the configs you mentioned but the issue prevails .&lt;BR /&gt;
The data was logged successfully until an hour ago but now when i check its gone from 4am to 5am est.Whereas it was there before when i checked . Rest of the logs are intact.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 12:57:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472182#M81160</guid>
      <dc:creator>sujithkumarkb12</dc:creator>
      <dc:date>2020-02-18T12:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472183#M81161</link>
      <description>&lt;P&gt;Odd, I posted a comment but its vanished.&lt;BR /&gt;
If data is randomly appearing and disappearing I wonder if you have an issue with a search peer not returning results. Are you sure you have no errors reported in the job inspector?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 13:01:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472183#M81161</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-18T13:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472184#M81162</link>
      <description>&lt;P&gt;you are right , i no more see the data that was indexed few hours back .&lt;BR /&gt;
How do you suggest I check the search peers are fine and Job inspector has any reported jobs&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 13:03:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472184#M81162</guid>
      <dc:creator>sujithkumarkb12</dc:creator>
      <dc:date>2020-02-18T13:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472185#M81163</link>
      <description>&lt;P&gt;@jacobevans  and @nickhillscpl  &lt;/P&gt;

&lt;P&gt;I was able to resolve this issue with the concept &lt;STRONG&gt;"Rebalance the indexer cluster"&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.2/Indexer/Rebalancethecluster"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.2/Indexer/Rebalancethecluster&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;When I had checked all the aspects of Splunk instance to cause this issue , I was able to see discrepancies in buckets replication and transition from hot to warm buckets , which explains data available when the data is ingested (HOT bucket) and unavailable later (transition failed to warm bucket and no replication happened) .&lt;/P&gt;

&lt;P&gt;Thanks anyways to have helped me narrow down the issue  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Cheers&lt;BR /&gt;
Take care!!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 08:31:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/472185#M81163</guid>
      <dc:creator>sujithkumarkb12</dc:creator>
      <dc:date>2020-03-10T08:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: splunk  shows no logs at a particular time frame in day when searched on the specific index and sourcetype</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/616293#M106481</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Were you able to actually get the logs back or just fixed the issue wherein it did not happen again but the missing logs still remained missing?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 09:30:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-does-splunk-show-no-logs-at-a-particular-time-frame-in-day/m-p/616293#M106481</guid>
      <dc:creator>intrach</dc:creator>
      <dc:date>2022-10-07T09:30:49Z</dc:date>
    </item>
  </channel>
</rss>

