LOG ANALYZER PRO
Hey there! I put together this script because I wanted a simple, good-looking way to see what's actually happening inside a Linux system without digging through messy log files manually. It's basically a one-click health check for your server.
What it actually does
I've set it up to handle a bunch of useful stuff automatically:
System Errors: It hunts down errors in your syslog or messages files so you don't have to. Security Stuff: It keeps an eye on failed SSH logins—super helpful if you want to see who's trying to knock on your door. Kernel and Hardware: It checks dmesg for any hardware complaints or kernel panics. Web Servers: If you're running Nginx or Apache, it'll even give you a quick count of your unique visitors. Pretty Colors: Because let's be honest, staring at black and white text all day is boring.
What you'll need
You just need a Linux box like Ubuntu, Debian, or CentOS and a Bash shell. It's best to run it as root or with sudo, otherwise, it won't have permission to read the sensitive security logs.
How to use it
It's pretty straightforward:
- Get the script onto your machine.
- Make it executable by running: chmod +x log_analyzer.sh
- Fire it up: sudo ./log_analyzer.sh
A little tip If you want to save the output to read later, you can just run: ./log_analyzer.sh > my_report.txt
Hope this makes your life a little easier!