On 04/12/2016 09:33 PM, Carlos E. R. wrote:
On 2016-04-13 03:18, Anton Aylward wrote:
On 04/12/2016 07:41 PM, Xen wrote:
I don't know why you want to make things so complicated. The already existing rsyslog mechanism not only supports programmability and templates, but listens on sockets.
He wants it to be all run and configured as plain user, not as root. It can not be the system syslog.
Indeed, and it need not be. Yes, systemd (or sysvinit if you are still using that) runs the SYSTEM syslog daemon. But there is no reason you can't start another instance of "a" syslog server with your own defines config file as a user. In fact the model I suggest is there already, read the script "rsyslog-service-prepare" which sets up the possible additional sockets for the system level rsyslog to listen on. Of course 'out of the box' that set is empty for there is only the socket in /var/run/rsyslog since there are no more defined in /etc/config/syslog. Yes a user side daemon would need its own start up script and start up parameters and config file. So what? Strictly speaking its only necessary to have your (or the system level) rsyslog daemon read from a file, the imfile module and its parameter list, which is amazingly flexible does this. You can list multiple files each with their own characteristics. Some may simply be read once; some mail be read as 'tail -f'. And of course some can be pipes :-) In general, see http://www.rsyslog.com/ Specific to sockets http://www.rsyslog.com/doc/v8-stable/configuration/modules/imuxsock.html http://www.rsyslog.com/doc/v8-stable/configuration/modules/omuxsock.html Also note a thread that I haven't explored, the ability to have rsyslog use arbitrary external programs, even user defined scripts: http://www.rsyslog.com/doc/v8-stable/configuration/modules/omprog.html You'll see in that a note: "... especially if it is not running as root...". Now why would it not be running as root? The system-level (systemd spawned) server runs as root, so the alternative must be a user initiated server. As I said, this is a very flexible tool. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org