January 2, 20206 yr For some reason the imfile.so module was not integrated into the rsyslogd for unraid. I would like to be able to monitor files in my unraid box or any of the docker containers and send to a remote syslog server for storage and parsing. Most standard linux like Ubuntu and CentOS come with it included by default. I tried to just copy the imfile.so file from another distro into unraid but it gives and error trying to restart rsyslogd. Link to module: https://www.rsyslog.com/doc/v8-stable/configuration/modules/imfile.html Example configuration adjustments to /etc/rsyslog.conf to monitor a file and send remotely: module(load="imfile" PollingInterval="10") # File 1 input(type="imfile" File="/mnt/user/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Logs/Plex\ Media\ Server.log" Tag="plex" StateFile="/var/spool/rsyslog/plex" #Severity="error" Facility="local1") local1.* @1.2.3.4:514
January 2, 20206 yr Author Thanks, I know about that but that forwards unraid syslog. I want to forward a docker container log file to a syslog, which can't be done as you suggest.
December 28, 20205 yr I'm missing this module too. Would be great if it would be included. Did you find a link where we can download the `.so` file and "install" it manually for the meantime?
January 22, 20215 yr +1 Indeed. I would love to add my Plex logs for example, as suggested below : https://chasewright.com/plex-logs-to-remote-syslog-server-with-rsyslog/ https://serverfault.com/questions/1046055/rsyslog-forward-log-with-space-in-path-or-name But you definitely need the imfile.so module to do so. Why is it missing in the first place ?
November 21, 20223 yr I need this module too.... I want to send the logs in x location in my unraid system to a remote syslog
September 2, 20232 yr I'd also been keen to see the imfile module included in the default OS so I can onforward logs like /var/log/ipmifan which generates temp readings from my motherboards IPMI and adjust the fans accordingly.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.