We're trying to forward data to a syslog server from a splunk server.
However, seems that the hostname and process id tags are missing.
We've set up a central splunk server (10.10.40.9), and another splunk server to forward some data to a syslog server (10.10.40.10).
Configurations used:
outputs.conf:
[tcpout]
defaultGroup = 10.10.40.9_9997
[tcpout:10.10.40.9_9997]
server = 10.10.40.9:9997
[tcpout-server://10.10.40.9:9997]
[syslog:localhost_10514]
server = 127.0.0.1:10514
type = tcp
inputs.conf:
[monitor:///var/log]
disabled = false
props.conf:
[host::*]
TRANSFORMS-routing=SYSLOG_FWD
transforms.conf:
[SYSLOG_FWD]
REGEX = .
DEST_KEY = _SYSLOG_ROUTING
FORMAT = localhost_10514
example output messages (forwarded splunk output to syslog):
2010-10-29T17:13:05.557347+02:00 10-29-2010 17: 13:04.924 INFO Metrics - group=per_source_thruput, series="/opt/splunk/var/log/splunk/splunkd.log", kbps=2.094271, eps=20.466667, kb=62.828125
2010-10-29T17:13:05.557347+02:00 10-29-2010 17: 13:04.924 INFO Metrics - group=per_source_thruput, series="/opt/splunk/var/log/splunk/splunkd_stderr.log", kbps=0.000684, eps=0.033333, kb=0.020508
example desired output:
2010-10-23T08:29:08.087021+02:00 VCS02 glassfish-log: [#|2010-10-23T08:29:00.584+0200|INFO|glassfish3.0.1|null|_ThreadID=29;_ThreadName=Thread-1;|Total number of available updates : 0|#]
2010-10-24T01:38:48.570726+02:00 VCS02 ntpd[14162]: synchronized to 77.226.252.14, stratum 2
2010-10-24T04:02:08.609446+02:00 VCS02 rsyslogd: [origin software="rsyslogd" swVersion="5.6.0" x-pid="26020" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
... View more