Getting Data In

How do I determine when an event was indexed?

the_wolverine
Champion

I'm trying to troubleshoot some issues with indexing. It would be great to be able to find out when an event or events were indexed.

1 Solution

the_wolverine
Champion

Here's how I would do it:

searchterms | eval idxtime=_indextime | convert ctime(idxtime) 

The added step of converting using ctime changes the epochtime (of _indextime) to human readable ascii time, like "03/31/2010 20:30:00".

View solution in original post

lisaac
Path Finder

I have a question. What is the easiest way to export this data from the command line? I would like the raw event with the value idxtime.

0 Karma

the_wolverine
Champion

Here's how I would do it:

searchterms | eval idxtime=_indextime | convert ctime(idxtime) 

The added step of converting using ctime changes the epochtime (of _indextime) to human readable ascii time, like "03/31/2010 20:30:00".

the_wolverine
Champion

you rock.......

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

one step: mysearchterms | convert ctime(_indextime) as idxtime

0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

Since Splunk 4.0, the indexing machine will add an index time field called _indextime to events as they are written to disk. To see these, run a search like the following and add "indextime" to the selected fields:

... | eval indextime = _indextime

To calculate lag from the timestamp of the event through indexing, search like:

... | eval lag = _indextime - _time

Get Updates on the Splunk Community!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...