• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 89
  • Last Modified:

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
0
gudii9
Asked:
gudii9
4 Solutions
 
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
 
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
How do you know if your security is working?

Protecting your business doesn’t have to mean sifting through endless alerts and notifications. With WatchGuard Total Security Suite, you can feel confident that your business is secure, meaning you can get back to the things that have been sitting on your to-do list.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

WEBINAR: 10 Easy Ways to Lose a Password

Join us on June 27th at 8 am PDT to learn about the methods that hackers use to lift real, working credentials from even the most security-savvy employees. We'll cover the importance of multi-factor authentication and how these solutions can better protect your business!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now