Splunk Search

TIME_PREFIX props question

tomjb94
Observer

Hi - 

I have a quick props question.

I need to write a props for a particular sourcetype, and the messages always start with before the timestamp starts:

ukdc2-pc-sfn122.test.local - OR ukdc2-pc-sfn121.test.local - 

When writing the TIME_PREFIX can a regex be written to account for this, is it just a basic one if so can someone provide this?

Thanks

 

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @tomjb94 ,

could you share some sample of your logs?

Anyway, if in your logs there's only one timestamp, you could try to use only TIME_FORMAT without TIME_PREFIX.

ciao.

Giuseppe

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 ...