TIBCO LogLogic LMI - How to send a test message using netcat

TIBCO LogLogic LMI - How to send a test message using netcat

book

Article ID: KB0079340

calendar_today

Updated On:

Products Versions
TIBCO LogLogic Enterprise Virtual Appliance all versions

Description

When troubleshooting or testing it maybe helpful to send test syslog messages to the LogLogic appliance. There could be several ways to do this, but one simple way is to use netcat.

Issue/Introduction

It maybe useful to send test syslog message to a LogLogic appliance for testing or troubleshooting

Resolution

The following will send a test udp syslog message to port 514 to a LogLogic appliance with the IP address of 192.168.10.10 using the nc command. The command can be run from the local LogLogic appliance or any remote Linux machine with the nc binary installed:

echo '<14>test message' | nc -v -u -w 0 192.168.10.10 514

To alter the protocol and change to TCP remove the -u option after the nc command, for example:

echo '<14>test message' | nc -v -w 0 192.168.10.10 514

Note that the 2nd example using TCP will provide output indicating whether or not the TCP connection was successful but the first command using UDP will not do that because UDP does not use connections.