Patrick Shanahan wrote:
* Hylton Conacher (ZR1HPC)
[06-02-04 12:39]: Am I right in saying that logrotate is already doing this or does it need to be set up/edited?
for the *default* files which you can see listed in the /etc/logrotate.d/ directory.
If I browse /, I see there is a /etc/logrotated directory with various files in it, are these the only logs that are logrotated and can other files be placed in the directory by me, in the right format, and also get logrotated?
yes, yes, yes
Is there a SuSE HOWTO on setting up logrotate files or is it done by the system from time to time.
man logrotate
What do all the entries in each section mean ie if i wanted to change how often it does it, is there a number I can change?
man logrotate
This script has one of the better man files. It is specific and very descriptive and offers examples. Look thru the entries in the /etc/logrotate.d/ directory and read the man file. You will quickly find what you need to extend this service. I had a feeling you were going to say RTFM Patrick. Tnx I have already and will slowly work thru it. I just wondered if there was perhaps an easier way, perhaps using X, to do this on a SuSE 9.0 system.
One question already whilst reading the man pages, does logrotate have to be manually run or does it do its own thing with no setup from the user? I tried: linux:~ # logrotate -usage logrotate: bad argument -usage: unknown error How can I found out it has run recently without specifying a particular file because there is very little chance of me browsing /var/log/messages and looking for logrotate? -- ======================================================================== Hylton Conacher - Linux user # 229959 at http://counter.li.org Currently using SuSE 9.0 Professional with KDE 3.1 Licenced Windows user ========================================================================