Getting Data In

How do I measure the time taken to forward data from a universal forwarder to an indexer?

amoldesai
Explorer

Hi,

I am using a universal forwarder to forward data to an indexer.

How do I measure the time taken to forward the data to indexer?

Thanks

0 Karma

Yasaswy
Contributor

Hi,
To get the exact time your data is spends on wire between the forwarder and indexer, you will have to check on the network front. But if you are looking to get an estimate of the difference between the time the event gets logged on your forwarder and the time it gets indexed on the indexer, you can get it by:

your search .... host=your_forwarder |eval latency=(_indextime - _time),indextime=strftime(_indextime,"%Y-%m-%d %H:%M:%S")|table _time, indextime, latency

0 Karma

amoldesai
Explorer

Thanks a lot Yasaswy

0 Karma

piebob
Splunk Employee
Splunk Employee

if this solved your problem, please accept Yasaswy's answer.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...