Deployment Architecture

Using splunk forwarder for forwarding logs to third party tool

vranjith009
New Member

Hi ,

I am trying to forward some live apache logs from splunk forwarder to third party tool with below settings.
Outputs.conf
[tcpout:1]
server = 172.17.8.178:5555
sendCookedData = false

I am unable to receive logs , found below error on splunkd.log

01-25-2016 14:24:02.203 +0530 INFO TcpOutputProc - Removing quarantine from idx=172.17.8.178:5555
01-25-2016 14:24:02.205 +0530 INFO TcpOutputProc - Connected to idx=172.17.8.178:5555
01-25-2016 14:24:02.237 +0530 ERROR TcpOutputFd - Read error. Connection reset by peer
01-25-2016 14:24:02.237 +0530 INFO TcpOutputProc - Connection to 172.17.8.178:5555 closed. Read error. Connection reset by peer
01-25-2016 14:24:02.433 +0530 INFO TcpOutputProc - Connected to idx=172.17.8.178:5555
01-25-2016 14:24:02.488 +0530 ERROR TcpOutputFd - Read error. Connection reset by peer
01-25-2016 14:24:02.488 +0530 INFO TcpOutputProc - Connection to 172.17.8.178:5555 closed. Read error. Connection reset by peer
01-25-2016 14:24:02.488 +0530 WARN TcpOutputProc - Applying quarantine to ip=172.17.8.178 port=5555 _numberOfFailures=2

Can any one help on this.

Tags (1)
0 Karma
1 Solution

sjohnson_splunk
Splunk Employee
Splunk Employee

You can't use tcpout to send to a 3rd party tool as that tool does not recognize the splunk tcp protocol. If you want to forward data to a 3rd party system you are going to have to use syslog.

Here's some samples:

outputs.conf

[syslog:third_party]
server = 10.37.7.44:4444
type= tcp
maxEventSize = 38000

Note the maxEventSize - you may not need it that large.

You'll also need a props.conf and transforms.conf to select what data to send:

props.conf

[apache]
TRANSFORMS-send_syslog=to_syslog

transforms.conf

[to_syslog]
REGEX = .*
DEST_KEY = _SYSLOG_ROUTING
FORMAT = third_party

View solution in original post

0 Karma

sjohnson_splunk
Splunk Employee
Splunk Employee

You can't use tcpout to send to a 3rd party tool as that tool does not recognize the splunk tcp protocol. If you want to forward data to a 3rd party system you are going to have to use syslog.

Here's some samples:

outputs.conf

[syslog:third_party]
server = 10.37.7.44:4444
type= tcp
maxEventSize = 38000

Note the maxEventSize - you may not need it that large.

You'll also need a props.conf and transforms.conf to select what data to send:

props.conf

[apache]
TRANSFORMS-send_syslog=to_syslog

transforms.conf

[to_syslog]
REGEX = .*
DEST_KEY = _SYSLOG_ROUTING
FORMAT = third_party

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...