?
Solved

log rotate of tacacs+ in redhat6

Posted on 2004-08-12
6
Medium Priority
?
1,239 Views
Last Modified: 2013-12-16
I just install tacacs on RH6 and it work and have log of tacacs is "/var/log/tac_plus.log" ,so I want to make it rotate every day in 1 week...

tac_plus.log
tac_plus.log.6
tac_plus.log.5
tac_plus.log.4
tac_plus.log.3
tac_plus.log.2
tac_plus.log.1

 how can I start it same as /var/log/messages
I try to make it by use command
“logrotate -f /etc/logrotate.d/tac_plus”
result is not create only 1 file and don't create new file in every day. There're have another command to set it up?
0
Comment
Question by:ahchun
  • 3
  • 3
6 Comments
 
LVL 11

Expert Comment

by:lbertacco
ID: 11791175
add a file "tacacs" in dir /etc/logrotate.d like the following

/var/log/tac_plus.log {
           rotate 7
           weekly
           nocompress
           missingok
}

then try logrotate -f /etc/logrotate.d/tacacs

See also "man logrotate" for options you can specify in this file. In particular you might need to restart or signal the tacacs daemon when you rotate the log file
0
 

Author Comment

by:ahchun
ID: 11817250
I done it, result it have new file after use 'logrotate -f /etc/logrotate.d/tac_plus' (I create file name to be tac_plus)

but when next day com'in a log file is not rotate.
Please advice.
0
 
LVL 11

Accepted Solution

by:
lbertacco earned 100 total points
ID: 11824141
what do you have in your /etc/logrotate.d/tac_plus file? With "weekly" logfile is rotate only every other week. If you want it to be rotate every day, use "daily"
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:ahchun
ID: 11827142
OK, I do it thank you. :)
Will saw the result in next day.

====================================
1. [root@localhost root]# more /etc/logrotate.d/tac_plus
/var/log/tac_plus.log {
           rotate 7
           daily
           nocompress
           missingok
}

2. logrotate -f /etc/logrotate.d/tac_plus
====================================
0
 

Author Comment

by:ahchun
ID: 11842232
so, I have /etc/logrotate.d/tac_plus
but it can't rotate everyday....it not start rotate.
0
 
LVL 11

Expert Comment

by:lbertacco
ID: 11844400
Wait until tomorrow. If still doesn't work it will need some investigation (but I'm going on vacation for one week so I'm not sure I'll be able to help)
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month16 days, 3 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question