Installation

Can you help me write the time prefix?

AzmathShaik
Path Finder

Hello All,

i have log events, in which my time stamp looks like

superuser:02/13/2019 04:08:24:367 PM UTC
supportUser:02/13/2019 02:06:23:497 PM UTC
auditUser:02/13/2019 09:04:44:367 PM UTC
libSMAL:02/13/2019 03:08:29:300 PM UTC

and i defined TIME_PREFIX as TIME_PREFIX=^: .

Can some please tell me if i defined it correctly?

Thanks

0 Karma

whrg
Motivator

Hello @AzmathShaik,

^: will not work, because ^ refers to the beginning of the line and there are no colons at the beginning of your lines.

Also, you should specify TIME_FORMAT. Splunk will try to recognize the time format on its own, but that can be error-prone.

Instead, try it like this:

TIME_PREFIX = \w+:
TIME_FORMAT = %m/%d/%Y %H:%M:%S:%3N %p %Z
MAX_TIMESTAMP_LOOKAHEAD = 64
0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...