Brett,
I was
working with logrotate this weekend and remember reading that olddir must be on
the same device as the original dir.
--Marvin BlackburnSystems
AdministratorGlen Raven"He's no failure. He's not dead yet"
--William Lloyd George
-
Hi,
I would like to logrotate files in a directory (say
directory is: /funstuff on /dev/hdb1) and due to disk space, I'd
like the old files placed in: /var/log/funstuff/old on /dev/hda1.
Logrotate when configured with "olddir" parameter complains that the olddir is
on
Title: Logrotate: 2 questions
We have a RH Linux 7.3 web server that has what I believe to be a default setup of logrotate running each night.
My first question is: what is the purpose of the default installation/setup of logrotate? What is it rotating? I ask because I am getting frustrated
Logrotate does what it says. Rotate log files. This is most certainly needed
or you logfiles will fill your drive.
Why it's not finishing? I've never seen that, maybe it's looking for a log
file that's not there or there is some other process that is hanging it.
After it rotat
ything i've seen there
> just isn't a problem using HUP to flush the logs. You can ignore the FUD
> and just upgrade to the new RPM.
I didn't think I could use the 8.0 RPM on my 7.2 (actually RHES) system,
but I can certainly hack the logrotate scripts.
(Note that the
P.S.
Note there is some discussion of this issue at:
http://www.geocrawler.com/mail/thread.php3?subject=Lost+bin-log%28s%29+following+logrotate+affecting+recovery%2C&list=8
However, the poster who is worried here is mixing a couple of problems together
including
the rotation of binar
runs, so
they continually build up (I’ve seen 7 or 8 instances at once running)
and this ends up severely slowing the system…
Apply all of the avilable errata. You probably have a release of
mailman or samba that includes a bad logrotate script.
To confirm the problem, cut and paste this command
The /etc/logrotate.d/mysqld script in mysql-server-3.23.56-1.72 invokes
"mysqladmin flushlogs" in the prerotate and postrotate sections. If mysql
has a root password, then these steps fail. It is possible to give the
mysql root password on the command line, but /etc/logrotate.d/mysqld is
world re
On Thu, 2003-08-07 at 10:15, Keith Soares wrote:
> We have a RH Linux 7.3 web server that has what I believe to be a
> default setup of logrotate running each night.
>
> My first question is: what is the purpose of the default
> installation/setup of logrotate? What is it rotating
Your answer is dead-on correct - thank you so much!
---
Keith Soares
Bean Creative
-Original Message-
From: Gordon Messmer [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 10:59 AM
To: [EMAIL PROTECTED]
Subject: Re: Logrotate: 2 questions
Keith Soares wrote:
> What happens
ou want to affect only one speicific
application's logging.
Correct format for the date command would be:
`date +%d%m%Y --date=\"-1 days\"`
I tried the to use it as extension for logrotate but it did not work.
Actually I can't get it to work at all:
In my /etc/logro
Hiya, this is my first post to the list . . . I hope I'm posting to the
right one as there seemed to be so many to choose from on the site.
Anyway, I'm using RedHat 8 and am trying to sort out our logrotate script as
our
daily logs are currently running at around 500MB/day.
I want t
Reuben D. Budiardja wrote:
Hello,
I have Apache installed/compiled from source in my server (*not* from RPM). In
its httpd.conf, I specify so that it writes its log in /var/log/apache/logs/.
The log files are access_log and error_log.
So I read the man page for logrotate, and thought to play
Hello,
I have Apache installed/compiled from source in my server (*not* from RPM). In
its httpd.conf, I specify so that it writes its log in /var/log/apache/logs/.
The log files are access_log and error_log.
So I read the man page for logrotate, and thought to play around with it. I
want the
I'm having a problem with logrotate rotating MySQL files and
flushing the server properly. My current file looks like this:
/var/lib/mysql/mysql.log {
notifempty
daily
rotate 14
olddir /var/lib/mysql/old_logs
missingok
compress
postr
I'm having a problem with logrotate rotating MySQL files and
flushing the server properly. My current file looks like this:
/var/lib/mysql/mysql.log {
notifempty
daily
rotate 14
olddir /var/lib/mysql/old_logs
missingok
compress
postr
Hi All,
I found out that I had redundant entries
in my etc/logrotate.d/syslog file. I removed those entries (referring to
my syslogs) and was able to rotate them. Thanks to all for your suggestions.
Mitch
To make a long story short, I did not
make the /var partition large enough and ran out of room. So I moved everything
under the /usr partition and thought I made all of the right changes that
referenced my syslogs. So, it was I who did it.
Thanks,
Mitch
On Tue, Feb 11, 2003 at 01:09:56PM -0500 or thereabouts, [EMAIL PROTECTED]
wrote:
> Hi Robert,
>
> Can't find anything (to me) that looks unusual. Tried to do
>
> ./logrotate -f /etc/logrotate.conf and got this
> error: /etc/logrotate.conf:26 duplicate log entry f
On Tue, 2003-02-11 at 18:09, [EMAIL PROTECTED] wrote:
> Hi Robert,
>
> Can't find anything (to me) that looks unusual. Tried to do
>
> ./logrotate -f /etc/logrotate.conf and got this
> error: /etc/logrotate.conf:26 duplicate log entry for
> /usr/logs/as5300.lo
Hi Robert,
Can't find anything (to me) that looks
unusual. Tried to do
./logrotate -f /etc/logrotate.conf and
got this
error: /etc/logrotate.conf:26 duplicate
log entry for /usr/logs/as5300.log
cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
On Tue, 2003-02-11 at 17:31, [EMAIL PROTECTED] wrote:
> Hi All,
>
> I did some searches and can't find a solution to my problem. My
> logrotate is not rotating. I am sure that it is something simple that
> I am not doing/configuring.
is the 'crond' process running
Hi All,
I did some searches and can't find a
solution to my problem. My logrotate is not rotating. I am sure that it
is something simple that I am not doing/configuring. This is running under
version 7.3.
Here is my logrotate.conf:
cat logrotate.conf
# see "man logrotate" for
d
We are using the syslog(3) call to log.
Dan
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
> On Behalf Of nate
> Sent: Wednesday, January 29, 2003 10:09 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Syslog stops logging from app after logrotat
nate said:
> a fairly easy way to test I suppose is to setup a syslog server, and see
> if your app logs to the server as instructed by /etc/syslog.conf or you
> can run lsof and see if it is using /dev/log. setting up a simple syslog
some quick tests revealed that running lsof for /dev/log won't
Dan Bar Dov said:
> We have the problem only in our own applications. Other system apps,
> continue logging fine.
>
>
>
> Looking for ideas what might be wrong in our app.
is your app using syslog? as in /dev/log to log ? or communicating with
the syslog daemon directly via UDP ? "syslog" is often
We have the problem only in our own applications.
Other system apps, continue logging fine.
Looking for ideas what might be wrong in
our app.
Dan
t; Upon further investigation, running TOP shows logrotate as having 98% of CPU and a
>bunch of memory.
> If I kill the process it frees everything of course.
> Is this a known bug? Suggestions?
Do you have mailman running? Mailman's log file naming scheme seems to interact badly
t; Upon further investigation, running TOP shows logrotate as having 98% of CPU and a
>bunch of memory.
> If I kill the process it frees everything of course.
> Is this a known bug? Suggestions?
The most likely problem is that one of packages has an incorrectly
defined config file
I have 7.3 running on an HP e800 server with 256M and 9gig of space.
First indication was the system would not respond to anything except ping.
At the console the error messages were Out Of Memoryyada yada.
Upon further investigation, running TOP shows logrotate as having 98% of CPU and a
I'm using mysql that was distributed by mysql.com. I seem to be having
a problem with logrotate. When I run logrotate manually on mysql only,
the logs seem to rotate fine. But, when it runs in the cron job, it
creates the new log, but mysql continues to log to the old log.
My mysql logr
On Fri, 27 Dec 2002, Daniel Tan wrote:
> oops...got it solved...actually mailman was doing the "bad thing"...so erase
> the whole damn rpm as i don't need it and think it sort of fixed it
I thought as much. BTW, there is an update to the mailman RPM that fixes
this problem.
--
On Thu, 26 Dec 2002, Daniel Tan wrote:
> i have rh7.3 running and my logrotate and cron is eating up
> memoryi have 23 file in /etc/logrotate.d and that is alot from what i
> know...how do i disable services i don't need at all and also from tripwire
> and logwatc
>; "Redhat" <[EMAIL PROTECTED]>
Sent: Friday, December 27, 2002 10:51 AM
Subject: How do i switch off logrotate
i want to switch off logrotate...it is consuming too much mem...how do i do
it?
Regards,
Daniel Tan
67469188 Ext.665
DID: 68430665
MIS Department
Shop N Save Pte Ltd
:
On Fri, 27 Dec 2002, Daniel Tan wrote:
> i want to switch off logrotate...it is consuming too much mem...how do i do
> it?
Logrotate is a daily cron job. Find it in /etc/cron.daily.
But what's the real problem here? Logrotate isn't generally a huge
resource hog (that I'm
i want to switch off logrotate...it is consuming too much mem...how do i do
it?
Regards,
Daniel Tan
67469188 Ext.665
DID: 68430665
MIS Department
Shop N Save Pte Ltd
: [EMAIL PROTECTED]
[This e-mail is confidential and may also be privileged. If you are not the
intended recipient, please delete
hi all,
i have rh7.3 running and my logrotate and cron is eating up
memoryi have 23 file in /etc/logrotate.d and that is alot from what i
know...how do i disable services i don't need at all and also from tripwire
and logwatch from cron.daily...do i just delete the files? my s
cd /var/log/samba
touch snmbd.log
/etc/cron.daily/logrotate
The last line is just to check.
On Tue, 2002-12-10 at 18:06, Matthew Simpson wrote:
> Does anyone know what this error is and how to correct it. We had a
> situation when we rebooted our server that our BIOS battery went flat
ng this cron email each day.
> /etc/cron.daily/logrotate:
>
> error: file /var/log/samba/smbd.log last rotated in the future --
> rotation forced
>
> Any help would be greatly appreciated.
try changing the contents of /var/lib/logrotate.status
nate
--
redhat-list mailing
/logrotate:
error: file /var/log/samba/smbd.log last rotated in the future --
rotation forced
Any help would be greatly appreciated.
Matt
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list
Try stopping cron then starting it up again.
I've seen this happen sometimes on Solaris 8 systems. After I modify
crontab I've noticed cron doens't always pick up the changes. Restarting
cron picked up the changes.
Weird.
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?sub
On Thu, Nov 21, 2002 at 02:48:23PM -, Will Mc Donald wrote:
> Have you checked that cron's actually running? If your cron daemon's died it
>wouldn't be picking up the logrotate entry in /etc/cron.daily, cron.weekly etc.
>
> $ ps auxww | grep cron
I checked /v
Have you checked that cron's actually running? If your cron daemon's died it wouldn't
be picking up the logrotate entry in /etc/cron.daily, cron.weekly etc.
$ ps auxww | grep cron
Will.
- Original Message -
From: "Javier Gostling" <[EMAIL PROTECTED]&g
On Tue, Nov 19, 2002 at 07:01:46PM -0600, Yoink! wrote:
> On Tue, 19 Nov 2002, Javier Gostling wrote:
> > Yester5day I setup logrotate to rotate logfiles for ColdFusionMX on a
> > daily basis, but today I found that the files were not rotated.
>
> check the files in your /
On Tue, 19 Nov 2002, Javier Gostling wrote:
> Yester5day I setup logrotate to rotate logfiles for ColdFusionMX on a
> daily basis, but today I found that the files were not rotated.
check the files in your /var/log directory for errors, espcially messages
and cron.
--
\ \/ / _ |~\
Hi all,
Yester5day I setup logrotate to rotate logfiles for ColdFusionMX on a
daily basis, but today I found that the files were not rotated. The
following is the /etc/logrotade.d/coldfusionmx file I created to rotate
this file.
[root@pinot1 root]# cat /etc/logrotate.d/coldfusionmx
/opt
Javier Gostling wrote:
>On Thu, 2002-06-20 at 16:18, Gordon Messmer wrote:
>
>
>>Nope. Are you sure you "restart"ed the service after the update? The
>>message you gave looks exactly like what happens when you don't. :\
>>
>>Perhaps you "reload"ed it?
>>
>
>Shouldn't the RPM check if the se
On Thu, 2002-06-20 at 16:18, Gordon Messmer wrote:
> Nope. Are you sure you "restart"ed the service after the update? The
> message you gave looks exactly like what happens when you don't. :\
>
> Perhaps you "reload"ed it?
Shouldn't the RPM check if the service was up to start with and restart
Nope. Are you sure you "restart"ed the service after the update? The
message you gave looks exactly like what happens when you don't. :\
Perhaps you "reload"ed it?
On Thu, 2002-06-20 at 11:39, ben hubbard wrote:
> Anyone else see problems this morning when logrota
Anyone else see problems this morning when logrotate ran?
I had used up2date to apply the patch for apache yesterday afternoon,
and it restarted just fine. This morning at 4am, when logrotate ran, and
then kill -HUP'd it, as per normal, it errored out with:
[Thu Jun 20 04:02:03 2002] [n
On Wed, 3 Apr 2002, Devon Harding - GTHLA wrote:
> Hi, how can I change the address that logrotate sends emails from instead of
> [EMAIL PROTECTED]
You can't unless you modify the source.
Erik
---
|
Title: logrotate mail from
Hi, how can I change the address that logrotate sends emails from instead of [EMAIL PROTECTED]
__
Devon Harding
System Administrator
Gilat Latin America
954-858-1600
[EMAIL PROTECTED]
This e-mail is intended for the above named addressee(s), and
On Mon, 23 Apr 2001 at 4:36pm (-0700), Ben Ocean wrote:
> At 09:02 AM 4/24/2001 +1000, you wrote:
> >You should just be able to remove /etc/logrotate.d/interchange and have done
> >with it. You should probably clean up whatever package belongs with the
> >file - if you're not using it you prolly
At 09:02 AM 4/24/2001 +1000, you wrote:
>You should just be able to remove /etc/logrotate.d/interchange and have done
>with it. You should probably clean up whatever package belongs with the
>file - if you're not using it you prolly don't want it there at all. At a
>guess I would say that your /
ow what it is, I'm sure I don't need it, so how can I get it out
> of logrotate?
You should just be able to remove /etc/logrotate.d/interchange and have done
with it. You should probably clean up whatever package belongs with the
file - if you're not using it you prolly don't want
onth ago) went through my machine and sured it up from hackers. He
didn't know what *interchange* was so he closed down its port. Well, if he
doesn't know what it is, I'm sure I don't need it, so how can I get it out
of logrotate?
TIA,
BenO
___
ssually it's 'cause no one knows the answer. Your query doesn't really
> >give us much to go on.
>
> As I thought about it, I figured that was the reason: not enough info :(
>
>
> > > but my server's
> > > costing me lots of money a
ive us much to go on.
As I thought about it, I figured that was the reason: not enough info :(
> > but my server's
> > costing me lots of money and I NEED YOUR HELP. I have a problem with
> > logrotate. When I run the command
> > logrotate -d /etc/logrotate.conf
&g
doesn't really
> give us much to go on.
What version of Redhat and logrotate, would be good. Have you tried
re-installing logrotate rpm?
--
Hal B
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Spamtrap: [EMAIL PROTECTED] and [EMAIL PROTECTED]
--
_
money and I NEED YOUR HELP. I have a problem with
> logrotate. When I run the command
> logrotate -d /etc/logrotate.conf
> it eats up all my CPU time, causes segmentation faults and core dumps, etc.
> This is true even if logrotate.conf is nothing but a blank file! What's
> gott
Hi;
I don't know WHY nobody out there responds to my queries, but my server's
costing me lots of money and I NEED YOUR HELP. I have a problem with
logrotate. When I run the command
logrotate -d /etc/logrotate.conf
it eats up all my CPU time, causes segmentation faults and core dumps,
Is there any reason why logrotate uses gzip as opposed to bzip2?
And if I want it to use bzip2, can I just change that in logrotate.h and
recompile it?
AMK4
--
W |
| I haven't lost my mind; it's backed up on tape
On Tue, Mar 06, 2001 at 08:18:29AM -0500, Duncan Hill a ecrit:
> I'm playing with logrotate, and have run into something. Namely, the
> fact that log rotate calls the older logs .1, .2, .3 etc. Is it
> possible, within logrotate, to specify that these files get a date
> instead
On Tue, Mar 06, 2001 at 08:18:29AM -0500, Duncan Hill wrote:
> I'm playing with logrotate, and have run into something. Namely, the
> fact that log rotate calls the older logs .1, .2, .3 etc. Is it
> possible, within logrotate, to specify that these files get a date
> instead
I'm playing with logrotate, and have run into something. Namely, the
fact that log rotate calls the older logs .1, .2, .3 etc. Is it
possible, within logrotate, to specify that these files get a date
instead? Or, can Apache write log files with a date in the name
dynamically?
--
Sapere
s
> University of Colorado at Denver
> Phone: (303)556-5394 Fax: (303)556-8550
> [EMAIL PROTECTED]
> http://www-math.cudenver.edu/~jweber
>
> On Thu, 1 Mar 2001, Larry Grover wrote:
>
>> I've got a problem with my samba logs, which seems to be related to logrotate. I&
: (303)556-8550
[EMAIL PROTECTED]
http://www-math.cudenver.edu/~jweber
On Thu, 1 Mar 2001, Larry Grover wrote:
> I've got a problem with my samba logs, which seems to be related to logrotate. I'm
>hoping someone here can give me a clue on how to fix this problem. The system t
I've got a problem with my samba logs, which seems to be related to logrotate. I'm
hoping someone here can give me a clue on how to fix this problem. The system this
occurs on is running RH6.2, with all packages updated to current versions.
Here's the problem:
After s
age-
> From: Ken Kirchner [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, August 08, 2000 10:32 AM
> To: Redhat Users List
> Subject: logrotate broken in 6.2?
>
>
> I dont recall when this stopped working exactly, but I'm pretty sure it
> was with RH6.x. For some
I dont recall when this stopped working exactly, but I'm pretty sure it
was with RH6.x. For some reason, when logrotate runs, it doe not properly
label and remove logs. Here's a sample from my samba dir:
-rw-r--r-- 1 root root0 Jul 23 09:02 log.smb
-rw-r--r-
Hi all
I have a weird problem with my sendmail that I can't work out (I posted it
a few weeks ago, but haven't got any response yet, so I'm posting it
again).
When the logs rotate (with logrotate) sendmail starts to only log half of
what it did before. Before rotation it woul
Hel all,
I seem to be having a logrotate problem of some sort... This is
what I see inside my /var/log/samba directory:
-rw-r--r--1 root root0 Jul 9 04:02 log.smb
-rw-r--r--1 root root0 Jul 9 04:02 log.smb.1
-rw-r--r--1 root root
Hi all
I have a weird problem with my sendmail that I can't work out.
When the logs rotate (from cron, with logrotate) sendmail only logs half
of what it did before.
Before rotation it would log the email coming in, then also log the
actual delivery to the mailbox.
After logrotate rota
I am noticeing a problem with some log rotation in my samba directory:
>[root@tomii samba]# ls
>log.nmblog.nmb.2.1.1 log.smb.1 log.smb.2.1.1.1
>log.nmb.1 log.nmb.2.1.1.1log.smb.1.1log.smb.2.1.1.1.1
>log.nmb.1.1log.nmb.2.1.1.1.1 log.smb.1.1.1
I just upgraded my samba, now I get an error every time logrotate runs;
error: samba:3 unknown option 'missingok' -- ignoring line
error: samba:11 unknown option 'missingok' -- ignoring line
This option "missingok" always gives this error, so why is it in logrotat
plaining. The only 'change' done recently
> was that I tightened up the ipchains rules. But then I'd expect it to
> fallover with some other error really. Also if I run '/usr/sbin/logrotate
> /tmp/lc' (where /tmp/lc is just a small config file to rotate the netc
0 Jan 1 04:02 /var/log/netconf.log
So I can't see why it is now complaining. The only 'change' done recently
was that I tightened up the ipchains rules. But then I'd expect it to
fallover with some other error really. Also if I run '/usr/sbin/logrotate
/tmp/lc'
Hi
try man logrotate
anyway:
> /var/log/maillog {
> rotate 1
it means that logrotate will keep 1 backlog file for maillog
> size=50k
the logfile will be rotated when its bigger than 50k
> daily
if its not bigger than 50k, your log will be rotated every once day (in RH
Sorry if this is a repeated mail.
Is logrotate meant to remove the logs?
daily
rotate 1
errors root
create
include /etc/logrotate.d
/var/log/maillog {
rotate 1
size=50k
daily
postrotate
/usr/bin/killall -HUP syslogd
endscript
}
Now I've got /var
When I try to rotate logs with "logrotate" command
this is what I get :
error: apache:279 bad rotation count' 4'.
I checked the syntax in /etc/logrotate.d/apache, couldn't
find anything wrong. I red man on logrotate, still no clue.
Thanks to all for help.
Sin
e.d/apache logrotate fails...
Doesn't Work! ~~~
~~
/var/log/httpd/virtual/www.some-virtual-domain.com/access.log {
monthly
rotate 3
olddir /var/log/httpd/virtual/www.some-virtual-domain.com/archive
postrotate
/
> One bit that's interesting is that "logrotate -d /etc/logrotate.conf"
> finishes to completion while both "logrotate -v /etc/logrotate.conf" &
> "logrotate /etc/logrotate.conf" segfault...
Post a message to [EMAIL PROTECTED], and explain to h
On 27-Mar-98 Grant Beattie wrote:
> Hi everyone,
>
> This is a little off-topic, but the most likely place that someone will
> be able to help..
>
> Has anyone successfully compiled logrotate (I have v2.2) on SunOS 5.5.1?
> If so, could you pls tar up the source and em
Hi everyone,
This is a little off-topic, but the most likely place that someone will
be able to help..
Has anyone successfully compiled logrotate (I have v2.2) on SunOS 5.5.1?
If so, could you pls tar up the source and email it to me so I can compile
it.
Unfortunately it has a lot of linux
ins hosted on it, but
> > also for each domain, there are multiple log files (errorlog, accesslog,
> > referrerlog, etc.). So, whenever logrotate executes the
> > /etc/logrotate.d/apache file, the daemon is restarted over a 100 times!
> > This seams silly/inefficient to me.
e apache daemon after *each* log file
> is rotated. My server not only has numerous domains hosted on it, but
> also for each domain, there are multiple log files (errorlog, accesslog,
> referrerlog, etc.). So, whenever logrotate executes the
> /etc/logrotate.d/apache file, the dae
numerous domains hosted on it, but
also for each domain, there are multiple log files (errorlog, accesslog,
referrerlog, etc.). So, whenever logrotate executes the
/etc/logrotate.d/apache file, the daemon is restarted over a 100 times!
This seams silly/inefficient to me.
Can I simply run a single
87 matches
Mail list logo