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
Ultra Champion

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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...