syslog, logrotate - can logrotate run without reloading syslog

From: pthread (prymus_at_interia.pl)
Date: 09/23/05


Date: 23 Sep 2005 14:26:43 -0700

Hi,

I'm writing an app which logs two times per second during almost all
day. I have to place the logs which are generated in the archive so I
use syslog & logrotate lunching from cron. I have noticed that when the
logrotate is starting its job it makes my app unable to write (syslog)
any line. Logrotate is creating a new file and then syslog cannot write
anything to this file. If I reload the syslog daemon I can use
syslog(LOG_,MSG) again.

I have 2 questions:
1) How can I catch the info that logrotate has started its work (I have
to stop thread in my app when logrotate is working)
2) How to notice that the syslog has written to the log successfully

Any ideas about how to manage such often logging will be appreciated

Thanks in advance
Peter



Relevant Pages

  • Re: Is ODBC useless, or OK in some circumstances?
    ... System Event Logs, Security Logs, and Application logs on remote machines, ... synch the app credentials with the servers. ... > Regarding database roles, best practices suggest if you need to give ...
    (microsoft.public.dotnet.general)
  • RE: audit trails for file access
    ... I actually use NTSyslog to send my logs off to a syslog server, ... On the syslog server side, I use syslog-ng to log to a MySQL database. ... In regards to logging to another machine, use the Eventlog to Syslog ...
    (Focus-Microsoft)
  • Re: Windows event auditing and reporting
    ... Log to Syslog translators and subsequent Syslog reporting tools. ... Once you get your logs into a generally vendor-agnostic format such as ... Event logs, especially DC logs for events such as New user accounts, ... Computer Emergency Response Teams, and Digital Investigations. ...
    (Security-Basics)
  • Re: Avaya IP Office TSP unpredictable lineMakeCall() failure
    ... Grant. ... an app that makes many calls via a 3rd-party TSP: ... Avaya to get hold of the PBX's internal logs. ... The app reports all such events to its trace output. ...
    (microsoft.public.win32.programmer.tapi)
  • =?UTF-8?Q?Re:_[opensuse]_openSUSE_12.1_KDE_?= =?UTF-8?Q?and_sessions?=
    ... The application starts fine the first time one logs in. ... there are two navit apps running. ... I suspect the session management part of KDE is involved. ... If you log out w/o closing the app, and have the app defined in autostart, ...
    (SuSE)