Getting Data In

go's time.RFC3339Nano format

framirez_enova
Explorer

Anyone having issues with nano second formatting from JSON logs. Currently it seems like times get rounded up or something.

What's sent:      2020-09-11T10:23:44.30373164-05:00
What shows:     9/11/20 10:23:44.000 AM

If you have/experienced this issue, how are you coping with or how did you solved it?

Labels (3)
0 Karma

framirez_enova
Explorer

Interesting on the digit. Will keep that in mind.   I also reached out to splunk support and they advise to try this in the props.conf file for the source:

%Y-%m-%dT%H:%M:%S.%9N%:z

0 Karma

isoutamo
SplunkTrust
SplunkTrust
%F <=> %Y-%m-%d
%T <=> %H:%M:%S

Please check your source is there eight or nine digits and use based on that %8N or %9N otherwise this didn't work.
0 Karma

isoutamo
SplunkTrust
SplunkTrust
I think that _time field can show it only ms not with more digits. If you want see all then you must convert it to anther field e.g. eval fullTime = strftime(_time, “%FT%T.%8N%:z”)
You have only 8 digits on your example even ns have 9, maybe this can also affect here?
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...