rsyslog can't send old data

Everything related with getting rsyslog up and running (but not beyond that point ;))

Moderator: rgerhards

Google Ads


Re: rsyslog can't send old data

Postby dlang » Tue May 23, 2017 12:12 pm

No, rsyslog will not delete the last queue file for a queue while it is running. You can't tell from the filesystem if the logs have been sent from that file or not, only by looking at the pstats output, and what you showed above says that rsyslog thinks every log from a disk queue has been sent.

Now, if that is a file left over from a previous run, then it's possible rsyslog did not get shut down correctly, and so did not make the correct .qi file for it to use when restarting, you can run recover_qi.pl against that file (while rsyslog is stopped) to rebuild the queue index file. Bit I think odds are good that when you shut rsyslog down, that file will be deleted.
dlang
Frequent Poster
 
Posts: 1001
Joined: Mon Sep 15, 2008 7:44 am

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Re: rsyslog can't send old data

Postby protoss5945 » Tue May 23, 2017 12:47 pm

since the log shows all data have been send why file “action” appeard?
is the file "action*" writen by the data not sent in memory?
it puzzled me
protoss5945
Avarage
 
Posts: 14
Joined: Fri May 19, 2017 9:41 am

Re: rsyslog can't send old data

Postby dlang » Tue May 23, 2017 1:26 pm

that file is there because at some point during the run of rsyslog, it filled the memory queue and put at least one log message in the disk queue. After that, rsyslog will not delete the file until it shuts down, because it doesn't have any way of knowing that it won't need the file again.
dlang
Frequent Poster
 
Posts: 1001
Joined: Mon Sep 15, 2008 7:44 am

Re: rsyslog can't send old data

Postby protoss5945 » Tue May 23, 2017 1:45 pm

thank you very much.
It helps me a lot .
protoss5945
Avarage
 
Posts: 14
Joined: Fri May 19, 2017 9:41 am

Google Ads


Previous

Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests

cron