Search code examples
ubuntu-14.04rsyslog

How to stop Rsys from sending log data


Hello i am relatively new to rsyslog, and i have a file stored here /etc/rsyslog.d/ to tell rsyslog to send log data.

I now have enough data to analyze and would like to stop rsyslog from keep sending log data and waste my bandwidth.

So the question is how can i do this? Will removing the config file in /etc/rsyslog.d/ will simply stop rsyslog from sending the log file ?

Thanks.


Solution

  • Simply removing the file will not stop the logging. you will have to issue a HUP to the PID of rsyslog.

    kill -HUP <RSYSLOG PID>
    

    This causes rsyslog to reread its configuration files in this case minus your config in /etc/rsyslog.d