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!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...