Splunk Enterprise

Discrepancy in calculation with Time Stamp.

sivakrishna
Path Finder

Hi Team,

We are observing discrepancy in calculation when the timestamp is less the 100ms.

Example:

Response time: “2023-10-23 14:46:14.84”

Request time: “2023-10-23 14:46:13.948”

 

When “Response time – Request timevalue should be “136ms” but in Splunk it showing as “890ms”.

 

While calculating Splunk is considering inbound value as ““2023-10-23 14:46:14.840ms” instead of “.84ms” as its in 2 digits.

So, is there any possibility to resolve this discrepancy from the Splunk query level or .conf level. 

 

Regards,

Siva.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

+1 on that. Why in what system should 14.84 ever mean 14.084? That's what leading zeros are for. It's definitely an application error.

Also - where do you get that value from? It's the _time field or some other time? While the app should be fixed either way, if it's the main timestamp of the event, it's simply plain wrong in terms of it being the proper timestamp for the event.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

".84" is correctly interpreted as ".840".  Zero padding is always on the side away from the decimal.  The difference between the two timestamps is 892ms.

If the application reporting the event intended the timestamp to be "14.084" then it should be corrected.

---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Let’s Talk Terraform

If you’re beyond the first-weeks-of-a-startup stage, chances are your application’s architecture is pretty ...

Cloud Platform | Customer Change Announcement: Email Notification is Available For ...

The Notification Team is migrating our email service provider. As the rollout progresses, Splunk has enabled ...

Save the Date: GovSummit Returns Wednesday, December 11th!

Hey there, Splunk Community! Exciting news: Splunk’s GovSummit 2024 is returning to Washington, D.C. on ...