LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   How Do zmd-messages Logs Get Rotated? (https://www.linuxquestions.org/questions/suse-opensuse-60/how-do-zmd-messages-logs-get-rotated-503339/)

ThisGuyIKnow 11-20-2006 01:51 PM

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

unSpawn 11-21-2006 07:16 AM

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.

ThisGuyIKnow 11-22-2006 11:49 AM

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 :rolleyes: )

- Gavin


All times are GMT -5. The time now is 05:12 PM.