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 Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

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