LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 11-20-2006, 01:51 PM   #1
ThisGuyIKnow
Member
 
Registered: Mar 2006
Posts: 43

Rep: Reputation: 15
How Do zmd-messages Logs Get Rotated?


Looking in my /var/log/ directory, it appears that zmd-messages logs get rotated daily. I looked at /etc/logrotate.conf and all the files in /etc/logrotate.d/ and there seems to be no config for zmd-messages. I like it being rotated daily, but I want to set the rotate to something smaller than what it is. Anyone know where this is config-ed?

- Gavin
 
Old 11-21-2006, 07:16 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Minimal logrotate cycle is "daily". If the messages are in a named file that is not rotated by the application itself then you could use say "size" and a hourly cronjob. You could also try configure zmd to spit out less verbose messages.
 
Old 11-22-2006, 11:49 AM   #3
ThisGuyIKnow
Member
 
Registered: Mar 2006
Posts: 43

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks, unSpawn.

Sorry, I guess I wasn't being clear enough. I know how to use logrotate. I just can't find the logrotate config for zmd-messages. (If one exists)

So, if I'm understanding you correctly, if an application has logging, but doesn't have a config file in /etc/logrotate.d/, logrotate just rotates that application's logs daily by default? How does logrotate even know of the existence of such an application then?

Also, I was under the impression that if an application that produces logs doesn't have a config file in /etc/logrotate.d/, then it uses the /etc/logrotate.conf file. Is this incorrect?

If I just make my own file config file for zmd-message in /etc/logrotate.d/, will it override everything else and not cause any problems? (I suppose I could just try it )

- Gavin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logs are not rotated BroX Slackware 11 06-03-2009 06:49 PM
Console error/warning messages not in logs sixerjman Linux - Software 7 11-08-2005 08:16 AM
ndiswrapper kernel messages filling my logs... TOO MUCH! jkassemi Linux - Wireless Networking 4 11-08-2005 02:12 AM
logs and messages ksun Linux - Newbie 8 01-21-2005 07:22 PM
Strange messages in system logs BajaNick Linux - Security 3 09-15-2003 10:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration