Getting Data In

How to forward indexed data to another syslog server?

satishsdange
Builder

Hi Gang -

I know this question has been asked and answered several times, but I could not fix my problem. Could someone please help me out

root@ip-172-31-26-78:/opt/splunk/etc/system/local# cat inputs.conf
[monitor:///var/log/syslog]
host = splunk_indx
sourcetype = syslog
root@ip-172-31-26-78:/opt/splunk/etc/system/local# cat outputs.conf
[tcpout:syslog]
server = 54.169.86.31:514
sendCookedData = false


root@ip-172-31-26-78:/opt/splunk/etc/system/local# cat props.conf
[syslog]
TRANSFORMS-forward = syslogTcpOut
root@ip-172-31-26-78:/opt/splunk/etc/system/local# cat transforms.conf
[syslogTcpOut]
REGEX = .
DEST_KEY=_TCP_ROUTING
FORMAT=syslog
root@ip-172-31-26-78:/opt/splunk/etc/system/local#

BTW, I have referred this post https://answers.splunk.com/answers/65818/forward-data-to-a-third-party-system.html

Thank you so much!!!

0 Karma

jmallorquin
Builder

Hi satishsdange,

I recomend you to change this in your configuration

root@ip-172-31-26-78:/opt/splunk/etc/system/local# cat outputs.conf
 [tcpout:syslog_forward]
 server = 54.169.86.31:514
 sendCookedData = false


 root@ip-172-31-26-78:/opt/splunk/etc/system/local# cat transforms.conf
 [syslogTcpOut]
 REGEX = .
 DEST_KEY=_TCP_ROUTING
 FORMAT=syslog_forward

Hope i help you.

0 Karma

satishsdange
Builder

Unfortunately it did not work.

0 Karma

somesoni2
Revered Legend

The props and transforms should be in Heavy Forwarder/Indexers. It seems like you did all these on the forwarder itself. (read comment#4 on the reference answer)

0 Karma

satishsdange
Builder

Config is from indexer.

0 Karma

satishsdange
Builder

Any taker for this question?

0 Karma
Get Updates on the Splunk Community!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...