Tag: log

IDS/IPS, Network

Detect attempted intrusions with psad

If you would like to know every moment of the day, what’s going on with your server then psad is the right tool for the job. Psad is an intrusion Detection and log analysis tool working above iptables. Psad is a collection of lightweight daemons that log attempted intrusions, in particular monitoring iptables. For Ubuntu …

Apache, Linux

Retrieve useful information from Apache logs

Common locations where you can find Apache logs are /var/log/apache2 and /var/log/httpd/. You can extract valuable information from your apache logs. Here are some useful examples! Extract unique IP addresses: cat /var/log/apache2/access.log | awk ‘{print $1}’ | sort | uniqcat /var/log/apache2/access.log | awk ‘{print $1}’ | sort | uniq   Extract unique IP addresses with …