I’ve been trying to get Rsyslog to monitor text files and send them to Syslog without much luck (Centos 7). I’m using the standard setup you find on Google:
$ModLoad imfile
$InputFileName /path/to/file1
$InputFileTag tag1:
$InputFileStateFile stat-file1
$InputFileSeverity error
$InputFileFacility local7
$InputRunFileMonitor
Anyone know why this doesn’t work for me? Does anyone have the imfile module working properly for them, can you show us your setup?