Getting Data In

epoch time

smahuja
Explorer

I want the difference between two timestamps in epoch.

My fields are like:

target.received.end.timestamp1597115254203
target.received.start.timestamp1597115254203

 

So need the difference between end and start timestamp.

Any help would be helpful.

 

Thanks

Labels (1)
Tags (2)
0 Karma

to4kawa
Ultra Champion

|eval diff = target.received.end.timestamp - target.received.start.timestamp 

0 Karma

isoutamo
SplunkTrust
SplunkTrust

And in human readable format

| eval diffHuman = tostring(diff, “duration”)

r. Ismo

0 Karma
Get Updates on the Splunk Community!

Application management with Targeted Application Install for Victoria Experience

  Experience a new era of flexibility in managing your Splunk Cloud Platform apps! With Targeted Application ...

Index This | What goes up and never comes down?

January 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Splunkers, Pack Your Bags: Why Cisco Live EMEA is Your Next Big Destination

The Power of Two: Splunk + Cisco at "Ludicrous Scale"   You know Splunk. You know Cisco. But have you seen ...