Getting Data In

Can you help me filter events that are coming from several universal forwarders?

splunksplunk232
Explorer

Hi all,

I am trying to filter events that are coming from several Splunk universal forwarders.

I have set a Splunk server that gets all the logs from the universal forwarders, filters them, and then sends them to the Splunk index server.

I have read https://docs.splunk.com/Documentation/Splunk/7.1.3/Forwarding/Routeandfilterdatad

I want to keep only the events that continue the words error or fetch and discard the rest.

So, I created props.conf, transforms.conf and outputs.conf in the path $SPLUNK_HOME/etc/system/local.

props.conf

[app_logs]
TRANSFORMS-set=appjunk, appfetch

transforms.conf

[appjunk]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[appfetch]
REGEX = fetch error
DEST_KEY = _TCP_ROUTING
FORMAT = mainindx

outputs.conf

[tcpout:mainindx]
server=10.158.0.6:9997

I have configured the Splunk index server to receive info in port 9997, and also, the Splunk heavy forwarder can receive info in this port.
I have tried to configure the Splunk heavy forwarder in this way, and it won't work, and I tried also to change the order of the TRANSFORMS-set command and transforms.conf and it still won't work.

Thank you in advance

0 Karma

chrisyounger
SplunkTrust
SplunkTrust

The regex used in [appfetch] should instead be fetch|error

0 Karma

splunksplunk232
Explorer

It still not working, I also tried to set the regex to

 REGEX = fetch

And it was not working.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...