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
Champion

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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...