Splunk Search

How to edit props.conf to specify a different regex for each of three sourcetypes?

minkyuk
Explorer

Hello,

I'm trying to parse three different log files with different regex.

I have three different sourcetypes for each, and I'm wondering how I can specify a different regex for each on props.conf.

Would it be as simple as

[sourcetype_one] 
BREAK_ONLY_BEFORE= <regex>
[sourcetype_two]
...

Thank you, I would appreciate your ideas
Jack

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Yes, it could be as simple as that. It's difficult to say for sure without seeing samples of your data.

---
If this reply helps you, Karma would be appreciated.
0 Karma

jnussbaum_splun
Splunk Employee
Splunk Employee

The sourcetypes that you define in inputs.conf can be called out in stanzas in your props.conf, as you've mentioned above.

0 Karma

woodcock
Esteemed Legend

Correct, you make a stanza for each and in the stanza header you put one sourcetype, just like you showed in your question.

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