|
i have a data source that is very noisy, and i only want to index specific events from it, not all of them. for example, i only want to index logins and logouts, or login failures. how do i do this? |
|
This is done by defining a regex to match the necessary event(s) and send everything else to Here is a basic example that will drop everything except events that contain the string
In transforms.conf
2
I prefer to use the regex (?=) to match anything. The regex . won't match if the field you're checking against happens to be empty, for example. Though this doesn't happen with the default _raw field, other fields can be empty.
(15 Jan '10, 01:10)
gkanapathy ♦
|
|
This example only includes things that contain 'login' and drops everthing else. Another use case would be to take in everything and make an exception for nosie you want filtered out. The inverse to accept all except anything with the word 'info' would require just one stanza in transforms.conf:
|
|
See this post: http://answers.splunk.com/questions/96/how-do-i-exclude-some-events-from-being-indexed-by-splunk ========= This is done by defining a regex to match the necessary event(s) and send everything else to nullqueue Here is a basic example that will drop everything except events that contain the string login In props.conf:
In transforms.conf
|
|
I ran into the same pitfall but I don't know any way out of it. I need to discard certain noisy syslog events and keep the rest. C:Program FilesSplunketcsystemlocalprops.conf
I also tried :
I use the Cisco Security Suite App, thus the syslog port moved to 2000 for coexistence with the standard syslog service. C:Program FilesSplunketcsystemlocaltransforms.conf
Do you have an idea for further troubleshooting? Cheers, Philipp |