Getting Data In

Filtering/nullQueue Question

kmcconnell
Path Finder

I’m trying to get our AIX data into Splunk, but I’m having a filter/nullQueue issue. I was wanting to keep certain events and nullQueue everything else. Below is the props and transform. Right now everything is going into the index. Am I going about this the wrong way? The filtering is done on a heavy forwarder.

props.conf
[AIX]
TRANSFORMS-sec=sec_keepevent,sec_nullqueue

transforms.conf
[sec_keepevent]
REGEX = (sshd\[\d*\]:)|( su:)|( sudo:)|( failed:)
DEST_KEY = queue
FORMAT = indexQueue

[sec_nullqueue]
REGEX = (.*)
DEST_KEY = queue
FORMAT = nullQueue

Tags (2)
0 Karma

kristian_kolb
Ultra Champion

Hi,

Yes you are going about it in the wrong way - literally 🙂

You need to change the order in which the transforms are called from props.conf.

TRANSFORMS-sec = sec_nullqueue, sec_keepevents

The transforming takes the events through all transforms before returning them for further processing/indexing. Thus the nullQueue must come first.

lguinn might be right on the REGEX, though.

/k

kristian_kolb
Ultra Champion

And make sure that you're doing it under the correct props.conf stanza. Anything under [AIX] will only match if the sourcetype is called AIX.

0 Karma

kristian_kolb
Ultra Champion

You might also want to take a look here;

http://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings

since with your current config, if it was in the right place, all events would be discarded.

Also, these changes only apply to incoming traffic, it will not alter existing events in an index.

/k

0 Karma

lguinn2
Legend

Try this for the regular expression in seckeepevent

REGEX = (sshd\[\d*\]:|su:|sudo:|failed:)

0 Karma
Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...