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 (4)
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
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...