Getting Data In

Can you Filter on remote servers prior to the log transfers to Splunk Indexer?

agentguerry
Path Finder

Can I set up props.conf and transform.conf files on a remote server to null out entries in a log prior to them getting sent to the splunk index servers?

I want to filter out any lines in my /var/log/messages that contains:
com.site.ws.util.jaxws.SOAPMessageContextUtil - Could not instantiate EfficientStreamMessage java.lang.NoSuchFieldException: envelopeTag

I created a props and transforms file:

[source::/var/log/messages]
TRANSFORMS-null= setnull

[setnull]
REGEX = com.site.ws.util.jaxws.SOAPMessageContextUtil - Could not instantiate EfficientStreamMessage java.lang.NoSuchFieldException: envelopeTag
DEST_KEY = queue
FORMAT = nullQueue

Restarted Splunk.
But the Splunk Web interface still shows them being logged.

Thanks for the help in advance. I feel I'm overlooking something simple. 😄

0 Karma

masonmorales
Influencer

As others mentioned, you need to replace your current universal forwarder with a heavy forwarder. You can copy all of your configuration files from the UF to the HF without having to rewrite anything. Then, have a look at this article on how to configure it: http://docs.splunk.com/Documentation/Splunk/6.2.2/Forwarding/Routeandfilterdatad

s2_splunk
Splunk Employee
Splunk Employee

OR: leave your universal forwarder installed and deploy your props/transforms onto your indexer. Granted, you will still send the data over the network, but you don't have the footprint and resource requirements of a full Splunk install (Heavy Forwarder) taking away capacity on your remote server.

BTW, you can't do this kind of event level filtering, because the UF doesn't know anything about events, it sends a data stream that's parsed and line-broken on the indexer (or a heavy forwarder), which is when indexed events get created.

masonmorales
Influencer

In addition to wasting network bandwidth, it also consumes CPU resources on your indexer. If an HF can be put at the sending device, that's what should be done.

0 Karma

agentguerry
Path Finder

So i am reading that you ahve to have the "heavy forwarder" in order to filter in that manner.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Yup, Heavy Forwarders can process their data before sending it to the indexers.

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...