syslong-ng and tcp sockets 03 June 2025, 03:26:57 Is it normal for a logger to be using tcp sockets? Why is it not just using standard Unix sockets instead of burdening the network stack? Quote Selected
Re: syslong-ng and tcp sockets Reply #1 – 03 June 2025, 08:29:29 Quote from: mrbrklyn – on 03 June 2025, 03:26:57Is it normal for a logger to be using tcp sockets?Quite normal I guess. It depends on your configuration though, if you don't have any network log sources then syslog doesn't open any tcp or udp ports. AFAIK. Quote Selected 1 Likes
Re: syslong-ng and tcp sockets Reply #2 – 03 June 2025, 09:39:08 Quote from: Ambie – on 03 June 2025, 08:29:29Quote from: mrbrklyn – on 03 June 2025, 03:26:57Is it normal for a logger to be using tcp sockets?Quite normal I guess. It depends on your configuration though, if you don't have any network log sources then syslog doesn't open any tcp or udp ports. AFAIK.Why don't the network servers report directly to the syslogger with Unix to Unix sockets? The system logger is not a TCP dumper ? Quote Selected
Re: syslong-ng and tcp sockets Reply #3 – 03 June 2025, 10:20:22 IQuote from: mrbrklyn – on 03 June 2025, 09:39:08Why don't the network servers report directly to the syslogger with Unix to Unix sockets?AFAIK unix sockets are local. Anyway, IP is more universal solution as not all servers are unix-like. Quote Selected
Re: syslong-ng and tcp sockets Reply #4 – 03 June 2025, 10:36:50 Quote from: Ambie – on 03 June 2025, 10:20:22IQuote from: mrbrklyn – on 03 June 2025, 09:39:08Why don't the network servers report directly to the syslogger with Unix to Unix sockets?AFAIK unix sockets are local. Anyway, IP is more universal solution as not all servers are unix-like.syslog is logging LOCAL services and events. the IP stack is only more universal for non-unix like systems. On Unix systems, unix sockets are built in. There is no reason to expose a system logger which is getting messages from system daemons to the network.All the servers on Linux should be Unix-like. It is Unix.https://linux.die.net/man/3/sysloghttps://linux.die.net/man/8/syslogdSysklogd provides two system utilities which provide support for system logging and kernel message trapping. Support of both internet and unix domain sockets enables this utility package to support both local and remote logging.Yeah - why would it do that Quote Selected
Re: syslong-ng and tcp sockets Reply #5 – 03 June 2025, 11:36:34 Hi.Devil's advocate here Linux is not a Unix. It is as you first stated 'Unix-like'. AFAIK it could not be certified as a Unix because it's not fully POSIX compliant.From my own experience you have to go out of your way to enable remote logging, on client and server, with both syslog-ng and rsyslog.The reason I set it up when I did was I was getting hard crashes and hoped there might be something extra in the logs that the logger had caught but hadn't yet been written to disk because of the write cache.It didn't help but that's one use case.Another would be when you have many machines but want centralised logging. There are other way to achieve this but one is to have the functionality built directly into the logger.For other reasons I switched from syslog-ng to metalog. Metalog does not support remote logging so may be the better choice for you ? Quote Selected 2 Likes
Re: syslong-ng and tcp sockets Reply #6 – 04 June 2025, 03:08:26 Quote from: gripped – on 03 June 2025, 11:36:34For other reasons I switched from syslog-ng to metalog. Metalog does not support remote logging so may be the better choice for you ?I was just reading Nous say that it does I'm confused. Quote Selected
Re: syslong-ng and tcp sockets Reply #7 – 04 June 2025, 08:41:46 Quote from: mrbrklyn – on 04 June 2025, 03:08:26I was just reading Nous say that it does I'm confused.I stand corrected. Just checked and it does, sort of. You can enable the sending of log message to a remote syslog server but it can’t receive them itself as a client. (according to this)Which I admit to seeing as a bonus. But find a bit odd to only implement it one way? Apologies for the incorrect information though. I still prefer it to syslog-ng. Very lightweight. The default config just worked after installation and it's format is far simpler than syslog-ng Quote Selected