Displaying 20 results from an estimated 30000 matches similar to: "Debugging log rotation problem"
2010 Dec 02
1
rotate of logfiles
Hello list.
This is not a life-threatening question, but still quite important for
debugging.
I have the following crontab :
15 0,8,12,17 * * * /usr/sbin/asterisk -rx 'logger rotate'
Because I have debug level 9, logfiles get quite large.
I notice that the rotation of the logfiles goes to plan, except at 17h15.
I currently have :
-rw-r--r-- 1 root root 59024 Dec 2 09:36
2008 Jul 08
1
CONSOLE logging
Hello,
I'm trying to enable CONSOLE logging in Asterisk 1.4.14 on a 2.6.18
Debian Lenny server.
It is enabled in logger.conf, however no log file is created in
/var/log/asterisk/
Also I was wondering if I manage to get it working and use logrotate
daemon as well, is logrotate going to restart the asterisk process each
time in order to rotate the log file?
Thank you.
2007 Aug 30
2
asterisk at 100% CPU, 1000's of log files
Hi All,
Twice now in the past few weeks I've walked into the office to find that
our 1.2.24 Asterisk process is sat at 100%, and that hundreds of
thousands of log files in /var/log/asterisk exist, all at 312 bytes,
containing:
Aug 29 23:22:17 VERBOSE[24303] logger.c: Asterisk Event Logger restarted
Aug 29 23:22:17 VERBOSE[24303] logger.c: Asterisk Queue Logger restarted
Aug 29 23:22:17
2005 Sep 11
5
rotate * log file?
Running fc3 with current cvs-head...
Is there a nice way to rotate the /var/log/asterisk/messages file without
shutting down asterisk?
I'm currently rotating the log files via cron, however my script requires
asterisk to be shut down, which also kills any outstanding cli sessions
(eg, asterisk -rvvvvv). Would like to rotate the files without killing
the cli session. Any reasonable way to
2007 Feb 05
1
format_wav.c:247 update_header: Unable to find our position
I have a persistent problem with a PBX I commissioned recently. After a
few days it goes into a spasm, creating thousand of log files and giving
the message below on the CLI.
Dell PE 1600 with Sangoma A200.
pbtpbx*CLI> show version
Asterisk 1.2.14 built by root @ pbtpbx.local on a i686 running Linux on
2007-01-13 18:31:56 UTC
Asterisk Queue Logger restarted
Rotated Logs Per SIGXFSZ
2009 Apr 22
5
Asterisk routine maintenance activities
Hello(s),
I know this might be test book question or one best suited for google but I
will take the risk of asking. Here I go. What common
routine maintenance tasks do you run on your asterisk box?
Thanks
James.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090422/8cfeb434/attachment.htm
2017 Nov 17
2
Log rotation and combining...
That doesn?t seem to work either. Where do I find logs for log rotation to see the reason it failed?
Ethon
> On Nov 16, 2017, at 7:53 PM, Bill Shirley <bill at KnoxvilleChristian.org <mailto:bill at KnoxvilleChristian.org>> wrote:
>
> I believe you need a 'create' statement to set the permissions. Here
> is an example for mariadb:
>
2017 Nov 17
2
Log rotation and combining...
So, the question is, why can I rotate the log manually, but cron returns a permission error? Do I need to tell cron to run it as sudo or something like that?
Ethon
> On Nov 17, 2017, at 2:29 AM, Tom Hendrikx <tom at whyscream.net <mailto:tom at whyscream.net>> wrote:
>
> Hi,
>
>
> Your crontab should normally mail you error output. But you can also run
> the
2006 Oct 01
7
Log rotation
Hi mongrel-herders,
I''m just wondering what fellow railsers use to rotate their logs in an
orderly fashion? I''d like to do something lightweight, i.e. (1) rename the
logfile (2, optional) create a new empty logfile and (3) send a signal to
each mongrel in the cluster and have them understand it''s time to reopen
their log file handles. This is what I do with apache and
2017 Nov 16
2
Log rotation and combining...
I have recently noticed that my dovecot-deliver.log is huge and wanted to start rotating it. So a couple of questions:
1. Can the dovecot-deliver.log be combined with the maillog, that gets rotated weekly? If it can be done, is it advisable?
Since the inception of this particular server, the log file has been located in the /home/vmail directory. Is there a reason it shouldn?t be located in
2017 May 05
4
CM for menuselect choices
I'd like to be able to save the choices made in menuselect in a way
that they can be tracked in a CM system and applied to a later release
of Asterisk using an automated tool like Ansible. What's the best
way to do that?
2020 May 22
3
log.samba missing rotation
I know about this param, I configured it and log.smbd, log.nmbd and others are rotated, log.samba is not.
----- Original Message -----
> From: "samba" <samba at lists.samba.org>
> To: "Lorenzo Milesi" <maxxer at yetopen.it>, "samba" <samba at lists.samba.org>
> Sent: Thursday, May 21, 2020 7:29:04 PM
> Subject: Re: [Samba] log.samba
2011 May 01
4
Odd error in libpri
I just updated libpri 1.4 on my system to the latest from that branch and
my QSIG connection to an NEC SV8300 stopped working. The trace showing
the problem is below:
q931.c:5640 q931_connect: Call 7168 enters state 10 (Active). Hold state: Idle
> DL-DATA request
> Protocol Discriminator: Q.931 (8) len=21
> TEI=0 Call Ref: len= 2 (reference 7168/0x1C00) (Sent to originator)
>
2009 Dec 28
3
Log rotation?
? Hi people.
? I had read dovecot logging info, they say something about using log
rotation to help us rotate our log, with this setup:
# dovecot SIGUSR1: Re-opens the log files.
/var/log/dovecot*.log {
missingok
notifempty
delaycompress
sharedscripts
postrotate
/bin/kill -USR1 `cat /var/run/dovecot/master.pid 2>/dev/null` 2>
/dev/null || true
endscript
}
Well, my
2010 Aug 27
7
ASterisk CDR file Master.csv
How can we set the CDR Master file to rollover at say 30 Meg and create a new one
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100827/2e98385f/attachment.htm
2020 May 25
1
log.samba missing rotation
Can you try this and adjust the path's in it.
#/etc/logrotate.d/samba
/var/log/samba/log.smbd {
weekly
missingok
rotate 7
postrotate
[ ! -x /usr/bin/smbcontrol ] || [ ! -f /run/samba/smbd.pid ] || /usr/bin/smbcontrol smbd reload-config
endscript
compress
delaycompress
notifempty
}
/var/log/samba/log.nmbd {
2012 Nov 29
2
Tinc Log rotation fails
This may have already been addressed, and I apologize if it has, but here is my issue.
I have separated the TINCD log from syslog to isolate the VPN activity.
By starting with daemon with the --logfile= switch
It seems to work fine except that once log rotation takes place, the daemon does not recreate the log, nor will it write to the new log even if an empty file is put into place.
The only
2009 Nov 09
3
Sort logfiles at rotation time
Hi,
I want to be certain that my apache and varnish logfiles are in strict
date order when rotated. I'd like to run a sort command against them
before they're compressed.
I've had a look at the logrotate man page, and it looks like I can use
a postrotate/endscript to do this. However, I can see any reference
in the documentation for how to operate on the file. All the examples
2007 Apr 20
1
Mongrel cluster log rotation best practices
OK, maybe not even best practices, but at least, tested practices.
>From my reading thus far, it is evident I shouldn''t use Rails to
handle mongrel log rotation. Fine, I''m sold on that. The advice I''m
seeing says that that one should use an external script to do this.
So my question is, what are people using? What''s working well?
Simple bash scripts or
2007 Dec 07
1
Samba logfile rotation on AIX
I am running a Samba server version 3.0.23d on AIX and I am trying to
figure out how to rotate the Samba logs daily. I know the logfile can be
rotated based on size but how can I make it rotate daily without the size
parameter? Any help would be greatly appreciated.
Thanks,
Maurice Forte