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!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...