Search code examples
linuxrsyslog

what is $InputFilePollInterval in rsyslog.conf? by increasing this value will it impact on level of logging?


in rsyslog configuration file we configured like all application logs are to be write in /var/log/messages but the logs get written at very high rate, how can i decrease the level of logging at application level


Solution

  • Hope this is what you are looking for. Open the file in a text editor:

    /etc/rsyslog.conf
    

    change the following parameter to what you think is good for you:

    $SystemLogRateLimitInterval 3
    $SystemLogRateLimitBurst 40
    

    restart rsyslogd

    service rsyslog restart 
    

    $InputFilePollInterval equivalent to: “PollingInterval”

    PollingInterval seconds
    Default: 10
    
    This setting specifies how often files are to be polled for new data.
    The time specified is in seconds. During each polling interval, all 
    files are processed in a round-robin fashion.
    
    A short poll interval provides more rapid message forwarding, but 
    requires more system resources. While it is possible, we stongly 
    recommend not to set the polling interval to 0 seconds
    

    .