Rsyslogd imfile support


Recommended Posts

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

 

  • Like 1
Link to comment
  • 11 months later...
  • 4 weeks later...

+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 ?

Link to comment
  • 1 year later...
  • 9 months later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.