Wednesday, January 12, 2011

VMWARE Log Control 1/2

Today let’s talk about the log control of your VMWARE system.

I believe most of you must have some kind of policy or regulatory law to be compliant with.
In most cases it involves to keep a history of log files.
Also it’s a good practice to have control of your log files to avoid them to fill up your system volume with data.

Well, on ESX it’s controlled by logrotation.conf found at /etc/

Bellow you can see an example of my logrotation.conf



Log rotate is a powerfull resource and there’s a lot of options you can set up.
I just gave you the basics. If you want to read more about it just type: man logrotate on you host’s console

Before change you log configuration make sure you stop syslog to avoid any issue:

Let’s see how implement that

Log on your host’s console
Run: /etc/init.d/syslog stop
Run: vi /etc/logrotate.conf
Make the changes you want, save and close the file
Run: /etc/init.d/syslog start

Next post I will show how to control the log of your guests. Don’t miss that

No comments:

Post a Comment

Who am I

My photo
I’m an IT specialist with over 15 years of experience, working from IT infrastructure to management products, troubleshooting and project management skills from medium to large environments. Nowadays I'm working for VMware as a Consulting Architect, helping customers to embrace the Cloud Era and make them successfully on their journey. Despite the fact I'm a VMware employee these postings reflect my own opinion and do not represents VMware's position, strategies or opinions. Reach me at @dumeirell

Most Viewed Posts

Blog Archive