Hyperactive Inc.
Please Login or Register

Knowledgebase

How do i watch server log in real time?

This is about the best way to determine if there are errors being generated in your logs, without having to open and close them constantly.

1. Open 2 SSH terminals to your server.

2. Become root for both terminals.

In the first terminal execute:

# tail -f /var/log/messages

In the second terminal execute:

# /usr/local/psa/rc.d/named restart

As the named daemon is restarted, it will print all kinds of wonderful and usefull information to the first terminal. This can be done with any of the server logs in real time, error_log, access_log, suexec_log and so on.

If your server is live, and has active domains on it, there isnt even a need to use step two, as people visiting the servers domains will trigger errors for you!


**Use these commands at your own risk. These commands can vary from distro to distro. Always consult your documentation for your distribution of Linux for the correct commands**



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article


Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search