Linux Dedicated Server Logs

posted: Friday 16 October 2009 by Tavis J. Hampton in: Web Hosting VPS & Dedicated Web servers

dmesg server log

Question: Where do I view logs on my dedicated server?

Answer: Most of the logs on a Linux operating system are kept in the /var/log directory. There you will find logs for the main system, kernel, network, hardware, Apache, MySQL, and often times other third-party applications that you might happen to install.

There are several ways to view the logs. For example, if you want to view the “messages” log:

tail -f /var/log/messages
This will show you the last few lines of the log (i.e. the latest information).

less /var/log/messages

will give you a scrollable view of the log, controlled with the arrow keyes.

more -f /var/log/messages

will give you a paged view. Pressing enter or the space bar will show more of the text, which is all loaded at once.

1 stelle2 stelle3 stelle4 stelle5 stelle (no votes)
share this 0 comments

Related posts

Server OS Tips del 30 Jul 2010
Server Backup Tips del 30 Jul 2010
Server Hardware Tips del 28 Jul 2010
Server Maintenance Tips del 28 Jul 2010

Related tags

Be the first to add a comment to this article.

Your email address is required but won't be displayed.
Leave a comment

Register to reserve your nickname accross all the blogs in the Blogo network and to upload your avatar. If you already are registered, login to user your nickname.

Yes No

Comment preview

Network Blogo