How do I forward particular logs under a directory using rsyslog?
1
vote
1
answer
3157
views
Trying to froward following logs from
/home/ddlog/ms/logs/execution_logs/_abc-xyz-ms_*
to VMware vRealize Log Insight using rsyslog. For some reason that does not seem to be working.
I have tried using imfile -
# Now load the external log
$InputFileName /home/ddlog/ms/logs/execution_logs/_abc-xyz-ms_*
$InputFileTag ddlog
$InputFileStateFile ms
$InputFileSeverity debug
$InputFileFacility local7
$InputRunFileMonitor
local7.* @@hostname:514
Commenting out the imfile and updating the rsyslog.conf with the
*.* @@remote-host:514
seems to work perfectly fine but I am more concerned about forwarding specific logs.
Asked by Surya
(21 rep)
Apr 24, 2019, 08:58 PM
Last activity: Jun 30, 2025, 05:04 PM
Last activity: Jun 30, 2025, 05:04 PM