Getting Data In

How can eventdata from specific sourcetypes be forwarded to syslog on a heavy forwarder?

tylergps
Explorer

I'm trying to forward Windows logs from a Splunk indexer over to a syslog server. The indexer parses both Windows and Linux logs. I would like to only send events from a set of Windows sourcetypes over to syslog. I have tried configuring outputs.conf, props.conf, and transforms.conf as described in the guide for sending data to third party systems but don't believe it's forwarding properly.

outputs.conf (The syslog server listens on 515)

[syslog:win_syslog_group]
server = 10.10.6.13:515

props.conf

[sourcetype::win*]
TRANSFORMS-win = send_to_syslog

transforms.conf

[send_to_syslog]
REGEX = .
DEST_KEY =  _SYSLOG_ROUTING
FORMAT = win_syslog_group
0 Karma

cleelakrishna
Loves-to-Learn

the props.conf should be some thing like this
[sourcetype:win*]
TRANSFORMS-win = send_to_syslog

0 Karma

Raschko
Communicator

Did you had a look on the following option in the outputs.conf documentation:

syslogSourceType = <string>

As you obviously don't have syslog logdata, Splunk will possibly add a correct syslog header (at least timestamp+host) to your logs.

Unfortunately I don't know how it is handling the bunch of line breaks.

As rroberts suggests I would prefer TCP routing too, using the tcpout stanzas.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...