April 20, 201214 yr Hello all, Happy Unraid user here for nearly a year now. I'd like to forward the syslog from my Unraid server to a central logging server (syslog-ng) I have setup. Does anyone know how to go about doing so? In *nix its super easy just edit syslog.conf and add "@%ipaddress% to one of the lines. Thanks in advance! dustino
April 20, 201214 yr It's nearly the same way with unRAID since it's built on top of a mini-Slackware distro, except you need to perform the step upon every reboot to update /etc/syslog.conf and restart the syslogd.
April 21, 201214 yr It's nearly the same way with unRAID since it's built on top of a mini-Slackware distro, except you need to perform the step upon every reboot to update /etc/syslog.conf and restart the syslogd. Put the commands in /boot/config/go and they will execute on every boot.
April 27, 201214 yr Author Thanks all. Here's what I added to /boot/config/go: echo "*.* @192.168.1.10" >> /etc/syslog.conf /etc/rc.d/rc.syslog restart
April 27, 201214 yr Author Another somewhat related question: Is there a way to send the HTTP servers logs to syslog so they also get sent to the central server? I did some searching and found that Unraid runs the EM HTTP server but have not found the answer I'm looking for. Seems to me this functionality would require the install of another package (https://github.com/melito/em-syslog) but looking for input. Thanks in advance. dustino
May 4, 201214 yr Author Ah thanks, sorry for the duplicate post. Though my other question has made it more unique. mbryanr: your solution may be more graceful albeit seems needlessly complex and mine's working so I'll leave it but thanks! My follow up / related question is: Is there a way to send the HTTP servers logs to syslog so they also get sent to the central server? I did some searching and found that Unraid runs the EM HTTP server but have not found the answer I'm looking for. Seems to me this functionality would require the install of another package (https://github.com/melito/em-syslog) but looking for input. TIA!
Archived
This topic is now archived and is closed to further replies.