Splunk Search

Negative lookahead for props.conf

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

Influencer

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

Path Finder

We cannot change the config at UF.

0 Karma
State of Splunk Careers

Access the Splunk Careers Report to see real data that shows how Splunk mastery increases your value and job satisfaction.

Find out what your skills are worth!