How to include parts of live log files into website
<p>How would I go about having apache pull some lines from log files to be displayed on a website.</p>
<p>I want to pull the last 5 vistiors IPs (possiblly while censoring them slightly) and the last 3 IPs to be banned for trying to connect via SSH (which is currently blocked using fail2ban.)</p>
<p>I really have no clue where to start with this other than I already have apache up and running and my website is hosted in what can be thought of as a "normal" configuration.</p>
<p>The log files are in /var/log/ and I can control the access to them.</p>