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!

What You Read The Most: Splunk Lantern’s Most Popular Articles!

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

Announcing the General Availability of Splunk Enterprise Security 8.1!

We are pleased to announce the general availability of Splunk Enterprise Security 8.1. Splunk becomes the only ...

Developer Spotlight with William Searle

The Splunk Guy: A Developer’s Path from Web to Cloud William is a Splunk Professional Services Consultant with ...