Getting Data In

logstash configurations for sending data to splunk through tcp

mohan401
Engager

Hi All,

I am using rsyslog and logstash agent to forward data to splunk. I am able to send data through tcp from rsyslog but I am not able to using logstsh agent. Can you please help me on logstash configuration to fwd data to splunk.

logstash config

input{
pipe{
Appid => "XXXX"
path => "/path/script.sh"
}

output{

tcp
{
host => "XXXXX.XXXX"
port => XXX
}
}

I have mentioned the above config as a sample.

Tags (1)
0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...