Galileo Posted January 2, 2020 Share Posted January 2, 2020 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 1 Quote Link to comment
bonienl Posted January 2, 2020 Share Posted January 2, 2020 GUI has remote syslog functionality. You can set a remote server address there. Quote Link to comment
Galileo Posted January 2, 2020 Author Share Posted January 2, 2020 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. Quote Link to comment
Linus H. Posted December 28, 2020 Share Posted December 28, 2020 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? Quote Link to comment
Opawesome Posted January 22, 2021 Share Posted January 22, 2021 +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 ? Quote Link to comment
mkkk Posted November 21, 2022 Share Posted November 21, 2022 I need this module too.... I want to send the logs in x location in my unraid system to a remote syslog Quote Link to comment
Redxd Posted September 2, 2023 Share Posted September 2, 2023 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. Quote Link to comment
Recommended Posts
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.