Splunk Search

why it is not giving the results of all commands but on the 90 days command

haripotu
Loves-to-Learn Everything
bin _time span=1d |stats count by _time
| eval time_chunk = case(
_time > relative_time(now(), "-30d") AND _time < relative_time(now(), "-45d"), "Applications sits in New Applications Status > 30 days",
_time > relative_time(now(), "-45d") AND _time < relative_time(now(), "-60d"), "Applications sits in New Applications Status > 45 days",
_time > relative_time(now(), "-60d") AND _time < relative_time(now(), "-90d"), "Applications sits in New Applications Status > 60 days",
_time > relative_time(now(), "-90d") ,"Applications sits in New Applications Status > 90 days")
| stats count by time_chunk
 
Labels (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@haripotu 

Can you please try this?

 
| bin _time span=1d 
| stats count by _time 
| eval time_chunk = case(
    _time > relative_time(now(), "-45d") AND _time < relative_time(now(), "-30d"), "Applications sits in New Applications Status > 30 days",
    _time > relative_time(now(), "-60d") AND _time < relative_time(now(), "-45d"), "Applications sits in New Applications Status > 45 days",
    _time > relative_time(now(), "-90d") AND _time < relative_time(now(), "-60d"), "Applications sits in New Applications Status > 60 days",
    _time > relative_time(now(), "-90d") ,"Applications sits in New Applications Status > 90 days") 
| stats count by time_chunk

 

Thanks
KV
▄︻̷̿┻̿═━一

If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.

0 Karma

haripotu
Loves-to-Learn Everything

Hey Hi! 

I am getting result for 45 days, 60 days, but not for 90+days.

0 Karma

haripotu
Loves-to-Learn Everything

The data has only 16 events. it is not pulling that data. 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @haripotu,

what's the retention of the index that you're using in your search?

probably it has a retention of 90 days.

If you want to have older information, you have to enlarge the retention of that index, but, as you know, it has also a larger storage consuption (not license).

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...