Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Calculate difference between 2 timestamps in days?

$
0
0
i 'm trying to calculate the difference between two timestamps in number of days. here is my query base_search | eval intime = strptime(minTime, "%Y-%m-%dT%H:%M:%S") | eval outtime = strptime(maxTime, "%Y-%m-%dT%H:%M:%S") | eval timediffindays = tostring((outtime - intime), "duration") my timestamp filed looks like "2019-09-23T18:51:52+0000" my outcome looks like " 367+01:43:52.000000" i am expecting to see the results in number of days Thanks Azmath

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>