Filter unwanted events before indexing
This documentation does not apply to the most recent version of Splunk. Click here for the latest version.
Filter unwanted events before indexing
This example will remove unwanted events such as "Last message repeated 35 times."
In order to filter out the specific event you will need to do 2 things:
- Create an entry in props.conf for that source (or sourcetype) that will call the appropriate regex
- Create a regex in transforms.conf that sends events that match to the null queue
Create an entry in props.conf:
In $SPLUNK_HOME/etc/bundles/local/props.conf add the following stanza:
[source::/var/log/splunk/syslog-ng/vmware.log] TRANSFORMS-vmwarefilter = nullQueueRegex
Create an entry in transforms.conf:
In $SPLUNK_HOME/etc/bundles/local/transforms.conf add the following stanza:
[nullQueueRegex]
REGEX = Last message repeated
DEST_KEY = queue
FORMAT = nullQueue
This documentation applies to the following versions of Splunk: 2.1 , 2.2 , 2.2.1 , 2.2.3 , 2.2.6 View the Article History for its revisions.