Splunk Search

Time format for given log

VijaySrrie
Builder

Hi Team,

What is the Time_Format for
Tue Sep 17 12:43:09.925775 2019
I am not able to get it exactly from the below link
https://docs.splunk.com/Documentation/Splunk/8.0.3/SearchReference/Commontimeformatvariables

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

PavelP
Motivator

Hello @vijaysri ,

it should work with the current Splunk version automatically.

Alternatively you can set TIME_FORMAT=%a %b %d %H:%M:%S.%6N %Y

View solution in original post

PavelP
Motivator

Hello @vijaysri ,

it should work with the current Splunk version automatically.

Alternatively you can set TIME_FORMAT=%a %b %d %H:%M:%S.%6N %Y

harsmarvania57
SplunkTrust
SplunkTrust

Hi,

Please try below config

TIME_FORMAT = %a %b %d %H:%M:%S.%6N %Y
0 Karma

vnravikumar
Champion

Hi

Try this

| makeresults 
| eval temp="Tue Sep 17 12:43:09.925775 2019" 
| eval epoch=strptime(temp,"%a %b %d %H:%M:%S.%6Q %Y") 
| eval output=strftime(epoch,"%a %b %d %H:%M:%S.%6Q %Y")
0 Karma
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...