Getting Data In

Showing indexed time?

msarro
Builder

Hey everyone,
Is there a way to show the indexed time of an event (as opposed to the timestamp)? I am trying to see if my forwarders are capable of keeping up with the volume of data that I am sending - I seem to be missing a lot of events and I want to make sure I'm not losing them when my pruning process runs.

Tags (1)

Lowell
Super Champion

Look at the hidden _indextime field. I've found it helpful to look at the delay of each event and chart the results like so:

your search ... | eval delay=_indextime-_time | bucket bins=30 delay | chart count by delay

mendesjo
Path Finder

Doesn't work for me 😞 I add this to a query and I do not see _indextime values,

0 Karma

mendesjo
Path Finder

Here is the answer
YOUR QUERY | eval lag_sec=_indextime-_time | table lag_sec

0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

This data is stored in the _indextime field.

You can access it via:

... | eval indexed_time=strftime(_indextime, "%+")

Or:

... | eval lag = _indextime - _time
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!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...