Hi,
I am having some troubles using /usr/sbin/logadm to rotate sulog yearly. Can someone please assist with the correct syntax to rotate the sulog yearly? I'd like to maintain up to 3 years of logs.
I am on Solaris 10.
Thanks,
Hi,
I am having some troubles using /usr/sbin/logadm to rotate sulog yearly. Can someone please assist with the correct syntax to rotate the sulog yearly? I'd like to maintain up to 3 years of logs.
I am on Solaris 10.
Thanks,
I won't know if this actually works due to the fact that our logs are changed out by a script (and by logadm - great, now I have to see if they are messing with each other)...but in reading the logadm man page, this looks like it would work to change the log every year, and keep 3 years worth...hope you have disk space!
# logadm -w /var/adm/sulog -A 3y -p 1y
(This is assuming there are no other entries for sulog in the /etc/logadm.conf already and that no one runs the logadm command to get rid of old files throughout the 3 years...or does a rm command, mv command,...etc.)
Let us know in 2013 how it worked!