how to monitor log continuously automatically

hi,

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
LVL 7
gudii9Asked:
Who is Participating?
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.

ozoCommented:
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?
0
Craig SharpLead Enginneer - Unix Server TeamCommented:
I use Logsurfer almost exclusively.  It is a very powerful package.  Here is a link for the system.

https://www.crypt.gen.nz/logsurfer/
0

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.
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

gudii9Author Commented:
without using any external tools is there is a way i check and monitor continuously?
0
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.,
0
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?
0
Prabhin MPEngineer-TechOPSCommented:
yes you can install OSSEC in the same server and it's free of cost.
0
Prabhin MPEngineer-TechOPSCommented:
Hi,
May I know which Linux distro you are using??
0
gudii9Author Commented:
I use Logsurfer almost exclusively.  It is a very powerful package.  Here is a link for the system.

https://www.crypt.gen.nz/logsurfer/
is it free software?
how to install this? is it needs to be installed on unix server or on my windows laptop?
please advise
0
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.