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!

Splunk Enterprise Security 8.0.2 Availability: On cloud and On-premise!

A few months ago, we released Splunk Enterprise Security 8.0 for our cloud customers. Today, we are excited to ...

Logs to Metrics

Logs and Metrics Logs are generally unstructured text or structured events emitted by applications and written ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...