Splunk Search

Negative lookahead for props.conf

htidore
Path Finder

I am trying to create a stanza in props.conf so that all non splunk internal logs go to index=newindex.

I tried using negative lookahead as follow:

[source::^(?!.*log\/*\\*splunk).*$]

But it doesn't work.
Thanks.

Tags (2)
0 Karma

manjunathmeti
SplunkTrust
SplunkTrust

Instead of using props.conf you can use inputs.conf to route internal logs to other index.

[monitor://$SPLUNK_HOME/var/log/splunk]
index = newindex
0 Karma

htidore
Path Finder

We cannot change the config at UF.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...