What I initially thought of was making a small C program that uses named pipes, and run that on my router, and change the log path to the name of my named pipe, as Windows treats named pipes like paths afaik (iirc write() and such calls redirect to the pipe).
I could then make the program redirect the logs to an external server.
I'm not sure if this will work, and I don't want to make it write to filesystem and then upload to a server, as it will wear out the flash memory.
What should I do in such a scenario?
Isn’t this info already as default about 90% of the system log to begin with?
It should be enough to send the system log to the server and sort it out there with rsyslog for example.
Thanks for the replies, I don't want to send the entire syslog over as it can be too disorganized, so I have decided to use something like rsync to send it separately, and then delete the source logs.