Splunk Cloud Platform

How to identify date as the timestamp(_time value)?

rolyrolex
Path Finder

Hello, 

I'm using Splunk Cloud.

I have date with this format and i want splunk to identify date as the timestamp(_time value).

{

               "date":     "2022-03-08T13:00:46.3204337+01:00",

               "Delay Time":     "0 Sec",

               "OrderNumber":      "6285071",

                "Key / CLE":    "622203040258800100A",

                 "Name":    "ZM400_FINCON9P"

             }

I have a source type defined like this but it's not working. 

rolyrolex_0-1646751819052.png

 

Did someone have a solution please ? 

Thank you all 

Labels (1)
Tags (2)
0 Karma

somesoni2
Revered Legend

Try these Sourcetype definition properties (in the Advanced tab):

 

TIME_PREFIX = \"date\"\:\s*\"
TIME_FORMAT = %Y-%m-%dT%H:%M:%S.%7N%z
MAX_TIMESTAMP_LOOKAHEAD = 33

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The Search Reference manual says %7Q is not a valid value (See https://docs.splunk.com/Documentation/Splunk/8.2.5/SearchReference/Commontimeformatvariables#:~:text...)  Try %7N, instead.

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

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...