I have couple different solutions for running custom syslog server (based on ). The problem I am facing is that the following command does not send UDP packets to the server: logger -n 127.0.0.1 -P 514 'Test message' Do I properly send a test message? Any ideas on what I am doing wrong? Packet Sender can send and receive UDP, TCP, and SSL on the ports of your choosing. All servers and clients may run simultaneously. Packet Sender is an open source utility to allow sending and receiving TCP and UDP packets. The mainline branch officially supports. Packet Sender is a free utility to for sending / receiving of network packets. Support for TCP, UDP, and SSL. The scripts apparently should work, but I am unable to confirm they work during tests. EDIT: I confirmed that syslog receiver is indeed receiving messages sent with UDP protocol. Thus I also clarified the question removing this piece. I lost some sanity trying to figure out why I couldn't log across different machines to test our remote logging yesterday It turns out the util-linux/bsdutils core package which contains 'logger', has version 2.20.1 installed and that version silently ignores the -n switch. This is what I found out: • All newer versions of logger from 2.21 to 2.24 build and work fine. • Version 2.20.1 builds fine but ignores the -n switch just like the installed version. • All Ubuntu from 12.04 up to including 'trusty' all contain 2.20.1:( SOLUTION: Get the latest util-linux from: Unpack,./configure, make, and copy the binary from./misc-utils/logger to /usr/local/bin/logger. You may have to refresh your shell such as 'source ~/.bashrc' for the /usr/local/bin version to bite. Confirm the new logger is installed with 'logger -V' where it should NOT say 'logger from util-linux 2.20.1' anymore. I've got a test program (see code below) that sends and receives 1400 bytes using UDP. The first time through the while loop, the timeout will occur, causing the buffer to be sent. Linux gives us a very simple way of sending a UDP packet to an IP address and port: echo 'This is my data' > /dev/udp/127.0.0.1/3000 This example will send a UDP packet containing 'This is my data' to localhost on port 3000.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |