Re: SYSLOG over the network

2025-06-08 Thread Matteo Golin
Hello everyone, Here's an initial implementation! There are two PRs: 1) RFC 5424 support in the syslog kernel driver: https://github.com/apache/nuttx/pull/16493 2) syslogd application for transmitting RFC 5424 compatible messages over the network: https://github.com/apache/nuttx-apps/pull/3090 I

Re: SYSLOG over the network

2025-06-07 Thread Xiang Xiao
On Sun, Jun 8, 2025 at 7:52 AM Matteo Golin wrote: > > The central collection that passes on further to other sinks is a good > idea, but I think it would be difficult to implement. The devices I was > thinking of using this on are RPi Pico Ws, so I'd like to minimize extra > processing and also

Re: SYSLOG over the network

2025-06-07 Thread Matteo Golin
Taking a closer look at the RFC examples, it appears it's very plaintext-based, and messages could actually be constructed through the existing sprintf implementation with some modifications. The main drawback would be that if a user enabled both RFC5424 compatible messages and left out many of th

Re: SYSLOG over the network

2025-06-07 Thread Matteo Golin
Mainly my concern is that the current implementation of syslog (from my understanding reading the NuttX source code) is to `sprintf` the logs into the syslog stream that was configured (gleaned from `nx_vsyslog` in drivers/syslog/vslog.c). This has always worked since logs have only really been con

Re: SYSLOG over the network

2025-06-07 Thread Gregory Nutt
Get BlueMail for Android On Jun 7, 2025, at 4:31 PM, Tomek CEDRO wrote: > > Looks like having a central point to gather the information and > construct them according to RFC then passing these to "sinks" that > does the further processing i.e. output to text stream and/or out

Re: SYSLOG over the network

2025-06-07 Thread Tomek CEDRO
Looks like having a central point to gather the information and construct them according to RFC then passing these to "sinks" that does the further processing i.e. output to text stream and/or output to network? You could then just enable/disable or add more sinks when necessary? Tomek On Sat, Ju

Re: SYSLOG over the network

2025-06-07 Thread Matteo Golin
It appears that a whole protocol description exists for syslog messages and the implementation of syslog "originators", "relays" and "collectors". It's RFC 5424 . I read through it today to see how i

Re: SYSLOG over the network

2025-06-04 Thread Gregory Nutt
⁣Get BlueMail for Android ​ On Jun 4, 2025, 12:29 PM, at 12:29 PM, Matteo Golin wrote: >I like the idea of doing a syslogd implementation, since I agree that >it >would probably be simpler to implement in userspace. Looking even at >the >ramlog implementation, I'm not sure how using networking

Re: SYSLOG over the network

2025-06-04 Thread Matteo Golin
I like the idea of doing a syslogd implementation, since I agree that it would probably be simpler to implement in userspace. Looking even at the ramlog implementation, I'm not sure how using networking operations for something like a low-level `putc` would be achieved easily. I might read into net

Re: SYSLOG over the network

2025-06-03 Thread Xiang Xiao
Two approach could achieve the goal: 1. Utilize ramlog and implement all network stuff in userspace, like syslogd(https://linux.die.net/man/8/syslogd). You can even implement the same protocol as syslogd, so PC tools can be reused directly. 2. Do all network stuff inside the kernel dir

Re: SYSLOG over the network

2025-06-03 Thread Nathan Hartman
On Tue, Jun 3, 2025 at 5:01 PM Matteo Golin wrote: > Hello everyone, > > I was taking a look at the different syslog output options, and I noticed > that there are a variety of different sinks > (character devices, CDCACM, RAM, etc). However, I was thinking that it > would be useful to have a net

Re: SYSLOG over the network

2025-06-03 Thread Tomek CEDRO
On Tue, Jun 3, 2025 at 11:01 PM Matteo Golin wrote: > Hello everyone, > I was taking a look at the different syslog output options, and I noticed > that there are a variety of different sinks > (character devices, CDCACM, RAM, etc). However, I was thinking that it would > be useful to have a net

SYSLOG over the network

2025-06-03 Thread Matteo Golin
Hello everyone, I was taking a look at the different syslog output options, and I noticed that there are a variety of different sinks (character devices, CDCACM, RAM, etc). However, I was thinking that it would be useful to have a network sink for syslog, so that logs could be sent over a networ