Hi,
I have setup my syslog sever with many cisco switches, routers and firewalls. I have set to keep logs for 3 months. But the problem is my primary ASA is generating a huge amounts of logs per day. So I wants to remove those logs (only ASA's logs while keeping other devices logs) automatically after every 7 days. Is it possible to do this with cacti?
Syslog
Moderators: Developers, Moderators
Re: Syslog
Hello!
Cacti is not meant to manage your system. It is meant to report health statistics, not take actions. What you are asking Cacti to do is like trying to make a microwave wash dishes.
If you're using a Unix-based system, look into logrotate. Alternatively, you could just write a bash script that deletes that specific logfile if it's age is >=7 days, but logrotate is the better, more extensible solution here.
--Tyler
Cacti is not meant to manage your system. It is meant to report health statistics, not take actions. What you are asking Cacti to do is like trying to make a microwave wash dishes.
If you're using a Unix-based system, look into logrotate. Alternatively, you could just write a bash script that deletes that specific logfile if it's age is >=7 days, but logrotate is the better, more extensible solution here.
--Tyler
Who is online
Users browsing this forum: No registered users and 0 guests