Step 1 - Lets start with some sample data

If you have your own file, you can use that

echo "Message sent to using TCP" >> tmp.log
Step 2 - Send your data to your TCP input

Sending the log to logstash with openssl over TLS

cat tmp.log | openssl s_client -connect your-logstash-host:your-port < tmp.log

Sending the log to logstash with netcat without TLS (This is not recommened for production)

cat tmp.log | nc your-logstash-host your-port
Step 3 - View the data

Take a look in your kibana for your message

Ready to get going?

Try our 14 day free trial

No commitment and no catches

Create Free Trial