Splunk Search

Search Data 1 Minute Ago

mathiasy123
Path Finder

I have data that has _time from 18:00:20-18:00:52 and I set my current time to 18:01 so it should search the 18:00 time, why is it not working (display an empty result)? It should display the data from 18:00:20-18:00:52.

this is my search:

mathiasy123_0-1593759791251.png

 

Labels (3)
0 Karma
1 Solution

to4kawa
Ultra Champion

your search has no result. your index or source are correct?

View solution in original post

0 Karma

to4kawa
Ultra Champion

 

index=_internal earliest=-1m latest=@m | stats min(_time) as A max(_time) as B count | convert ctime(A) ctime(B) |addinfo | foreach *time [ eval <<FIELD>>=strftime('<<FIELD>>',"%T")]

Maybe we should unify with @.

 

0 Karma

mathiasy123
Path Finder

Hi @to4kawa 

It displayed this one:

mathiasy123_0-1593861377764.png

what happens?

0 Karma

to4kawa
Ultra Champion

your search has no result. your index or source are correct?

0 Karma

mathiasy123
Path Finder

@to4kawa 

 

Hi, I finally found my mistake, it seems my _time was wrong, so the search returns an empty result, big thanks!

0 Karma

to4kawa
Ultra Champion

good job @mathiasy123  happy splunking!

mathiasy123
Path Finder

How to check if my index and source are correctly?

0 Karma

to4kawa
Ultra Champion

check data summary on search

0 Karma

mathiasy123
Path Finder

@to4kawa 

 

How to do it ?

 

0 Karma

to4kawa
Ultra Champion

スクリーンショット 2020-07-07 17.50.26.png

click "Data Summary"

0 Karma

mathiasy123
Path Finder

@to4kawa 

Okay, let me try it.

Tags (1)
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...