how to monitor log continuously automatically


I connnected to one production inace went to the log directory where bunch of log files there.

how to continuosly monitor logs for any possible errors , exceptions.

how frequently new files created?
do i have to do vi command to open the log file

please advise
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

What does an error in a log file look like?
What do you want the monitor to do when it finds an error?  
Do you want it to open vi for you? Do you want it to give any vi editing commands?
Craig SharpLead Enginneer - Unix Server TeamCommented:
I use Logsurfer almost exclusively.  It is a very powerful package.  Here is a link for the system.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Likely logtop is what you're looking for.

# track all sites being accessed
tail -f /var/log/apache2/access.log | fields 1 | logtop -s 10000000

Open in new window

Just camp on any log with tail -f + pull out whatever fields, via gawk or grep + run into logtop.

This will give you a fast + light weight + real time report of log activity.
Are You Protected from Q3's Internet Threats?

Every quarter, WatchGuard's Threat Lab releases a security report that analyzes the top threat trends impacting companies around the world. For Q3, we saw that 6.8% of the top 100K websites use insecure SSL protocols. Read the full report to start protecting your business today!

gudii9Author Commented:
without using any external tools is there is a way i check and monitor continuously?
Prabhin MPEngineer-TechOPSCommented:
Hi ,
If you can install OSSEC server on the same server. This will be one of the best tool for analysing the Logs. It has in-built scripts to analysing the logs based on classifications like audit logs, access logs, error logs, etc.,
gudii9Author Commented:
If you can install OSSEC server on the same server

how to do this any detailed steps? is it commercal or free tool?
Prabhin MPEngineer-TechOPSCommented:
yes you can install OSSEC in the same server and it's free of cost.
Prabhin MPEngineer-TechOPSCommented:
May I know which Linux distro you are using??
gudii9Author Commented:
I use Logsurfer almost exclusively.  It is a very powerful package.  Here is a link for the system.
is it free software?
how to install this? is it needs to be installed on unix server or on my windows laptop?
please advise
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Security

From novice to tech pro — start learning today.