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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...