Re: F18+ /var/log/messages safely clean/rotate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2013-05-01 09:52, Frank Murphy skrev:
How to safely clean /var/log/messages for specific testing.
or set it to hourly rotate.
Couldn't see specific config in /etc/logrotate.d

Have tried "logrotate --force /var/log/messages"
lots of "error: /var/log/messages:7137 unknown option 'May' --
ignoring line"
I done want to nano "wipe the file" if possible

Have you looked in /etc/logrotate.d/syslog?

On my F18 it contains:

$ more /etc/logrotate.d/syslog
/var/log/cron
/var/log/maillog
/var/log/messages
/var/log/secure
/var/log/spooler
{
    sharedscripts
    postrotate
	/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || t
rue
    endscript
}
$ ls -l /var/log/messages*
-rw-------. 1 root root 205769  1 maj 11.16 /var/log/messages
-rw-------. 1 root root   1359  7 apr 03.48 /var/log/messages-20130407
-rw-------. 1 root root 180624 14 apr 03.37 /var/log/messages-20130414
-rw-------. 1 root root 160610 21 apr 03.21 /var/log/messages-20130421
-rw-------. 1 root root   2790 28 apr 03.50 /var/log/messages-20130428

--
Med vänliga hälsningar/Kærar kveðjur/Regards

Jon Ingason

Stortorpsvägen 75
142 65 Trångsund
Sverige/Svíþjóð/Sweden

T: +46(0)8 - 514 911 01
M: +46(0)70 - 514 91 12
E: jon@xxxxxxxxxx
W: www.ingason.se
B: www.ingason.se/blogg
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux