How to start Syslogd server on Mac to accept remote logging messages?

前端 未结 2 1950
灰色年华
灰色年华 2021-01-30 04:31

Anyone knows how to start Syslogd server on Mac to accept remote logging messages?

I started Syslogd, but seems it doesn\'t accept remote messages.

If I do a net

2条回答
  •  感动是毒
    2021-01-30 04:53

    A bit old, but I did have to do this today and whilst searching around for a simple piece of software to do this for me I came across this question.

    All I really wanted to do was watch some syslog entries for a short period of time and see what was coming from the server so what I ended up doing was:

    sudo tcpdump -lns 0 -w - udp and port 514 | strings
    

    This will simply print out any message that is sent to your machine on the output so you can display it.

    Anyway if you do this and it outputs messages that are being transmitted to your server you can be sure it's not being blocked by your firewall or any other hardware in the middle.

提交回复
热议问题