Getting Data In

Assistance with extracting timestamp from log file

matt4321
Explorer

I have some log files that have a diffrent time format than I have ran into before.
The log files timestamps look like this.
5/14/2014^2:54:39:16^
Day/month/year^hour:min:sec:ms

I can get the auto timestamp to recognize the Day/Month/year but has no idea how to look at the time. Can anyone suggest a strip time or props.conf regex to allow splunk to process this?

Tags (2)
0 Karma
1 Solution

lguinn2
Legend

Does this work?

TIME_FORMAT=%m/%d/%Y^%H:%M:%S:%f

I dragged it out of an old Python spec.

View solution in original post

0 Karma

lguinn2
Legend

Does this work?

TIME_FORMAT=%m/%d/%Y^%H:%M:%S:%f

I dragged it out of an old Python spec.

0 Karma

matt4321
Explorer

Perfect that worked great!!

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...