Splunk Enterprise

help for doing difference between 2 dates

jip31
Motivator

hi

I need to calculate the duration difference between 2 dates and having the result in seconds

The field "Debut chargement Profile" correspond to the beginning and the field "Fin chargement Profile" correspond to the end

the timestamp format is the following : 

13/09/2021 11:00:06,000

how to do this please?

Labels (1)
Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| eval diff=strptime('Fin chargement Profile',"%d/%m/%Y %H:%M:%S,%Q")-strptime('Debut chargement Profile',"%d/%m/%Y %H:%M:%S,%Q")

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| eval diff=strptime('Fin chargement Profile',"%d/%m/%Y %H:%M:%S,%Q")-strptime('Debut chargement Profile',"%d/%m/%Y %H:%M:%S,%Q")
0 Karma

jip31
Motivator

many thanks

0 Karma
Get Updates on the Splunk Community!

Routing Data to Different Splunk Indexes in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. The OpenTelemetry project is the second largest ...

Getting Started with AIOps: Event Correlation Basics and Alert Storm Detection in ...

Getting Started with AIOps:Event Correlation Basics and Alert Storm Detection in Splunk IT Service ...

Register to Attend BSides SPL 2022 - It's all Happening October 18!

Join like-minded individuals for technical sessions on everything Splunk!  This is a community-led and run ...