I have a mountpoint on my server where logs are getting pushed via application in a log file. I have created a custom file in /etc/rsyslog.d/xyz.conf.
Below is the configuration of the file.
$ModLoad imfile
$InputFilePollInterval 10
$InputFileName /mountpoint/xyz.log
$InputFileTag xyz-app:
$InputFileStateFile Stat-xyz-app
$InputFileSeverity info
$InputFileFacility local5
$InputRunFileMonitor
$InputFilePersistStateInterval 1000
$ModLoad imudp.so
$UDPServerRun 514
*.* @ServerIP:514
Below is my rsyslog.conf file configuration.
local5.* /mountpoint/xyz.log
$ModLoad imudp.so
$UDPServerRun 514
*.* @ServerIP:514 #Syslog server IP
But still the logs are not getting forwarded. If anyone could assist me. Thanks in advance.