Xinyu Zhao 368fc7a751 Reduce the number of monitored logs
Rsyslog has limitation on number of files it can monitor.
Also write a state file for each log.

Change-Id: I3497ff2d9c1655f89de4d69aed83cc7edfa534ee
2014-04-19 01:57:34 +00:00

13 lines
313 B
Plaintext

$Modload imfile
<% @loglist.each do |service, path| -%>
# <%= service %>
$InputFileName <%= path %>
$InputFileReadMode 0
$InputFileTag <%= service %>
$InputFileSeverity notice
$InputFileFacility local4
$InputFileStateFile <%= service %>
$InputRunFileMonitor
$InputFilePollInterval 1
<% end -%>