Solved

log rotate of tacacs+ in redhat6

Posted on 2004-08-12
6
1,094 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
Comment Utility
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
Comment Utility
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 50 total points
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:ahchun
Comment Utility
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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now