Getting Data In

Splunk forwarder - local logs to one Splunk server, sourcetype cisco_esa to another

rutlandn
Engager

I need to set up a Splunk forwarder to send /var/log/messages and /var/log/secure (with add monitor )from a machine to our main Splunk server but also send monitored files from another directory on this same server to a separete, specific Splunk server with sourcetype cisco_esa.

Can this be done by configuring inputs.conf and outputs.conf on a single Universal forwarder?

I've been able to get the individual tasks accomplished. And I'm considering running 2 instances of Universal forwarder. Just wondering if this can be done with one.

Damien_Dallimor
Ultra Champion

In inputs.conf you can use the _TCP_ROUTING property to target different forwarding groups in outputs.conf for the different sourcetypes being monitored.

Get Updates on the Splunk Community!

Enhance Your Splunk App Development: New Tools & Support

UCC FrameworkAdd-on Builder has been around for quite some time. It helps build Splunk apps faster, but it ...

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...