Lets start with some sample data

If you have your own file, you can use that

echo "Message sent to Logit.io using TCP" >> tmp.log

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

View the data

Take a look in your kibana for your message