Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: RSyslog: users
imfile stops pulling logs when file is truncated
 

Index | Next | Previous | View Flat


jesse.hathaway at getbraintree

Aug 7, 2012, 8:45 AM


Views: 301
Permalink
imfile stops pulling logs when file is truncated

The imfile module stops pulling logs when the log file it is watching is
truncated. Restarting or sending a HUP signal to the rsyslog process does not
restart the pulling from the log file.

Example:

# cat /etc/rsyslog.d/date.conf
$InputFileName /var/log/date.log
$InputFileTag date_log:
$InputFileStateFile date_log_state
$InputRunFileMonitor

# while true;do
date >> /var/log/date.log
sleep 1
done

# > /var/log/date.log

# /etc/init.d/rsyslog restart OR pkill -HUP rsyslog

Result:

rsyslog stops pulling from /var/log/date.log

Is this a bug or expected behavior?

Thanks, Jesse Hathaway

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards

Subject User Time
imfile stops pulling logs when file is truncated jesse.hathaway at getbraintree Aug 7, 2012, 8:45 AM
    Re: imfile stops pulling logs when file is truncated rgerhards at hq Aug 7, 2012, 10:02 AM
    Re: imfile stops pulling logs when file is truncated jesse.hathaway at getbraintree Aug 7, 2012, 12:08 PM
        Re: imfile stops pulling logs when file is truncated david at lang Aug 7, 2012, 12:13 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.