LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How do I forward particular logs under a directory using rsyslog? (https://www.linuxquestions.org/questions/linux-server-73/how-do-i-forward-particular-logs-under-a-directory-using-rsyslog-4175652718/)

Surya22 04-24-2019 04:26 PM

How do I forward particular logs under a directory using rsyslog?
 
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 -

# 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.

lisaalisa 04-25-2019 02:04 AM

I have tried using imfile -

# load the external log
$InputFileName /home/ddlog/ms/logs/execution_logs/_abc-xyz-ms_*
$InputFileTag ddlog
$InputFileStateFile ms
I have tried using imfile -

# load the external log
$InputFileName /home/ddlog/ms/logs/execution_logs/_abc-xyz-ms_*
$InputFileTag ddlog
$InputFileStateFile ms


All times are GMT -5. The time now is 01:24 AM.