I have a secure log file that reads:
Aug 17 09:09:09 hostname sshd[pid] :Accepted public key for user from x.x.x.x port 49332 ssh2
I want to create a php page that just displays :
Aug 17 09:09 user ipaddress
if I dump the secure log into a db, it will get huge but I was hoping I could create a cron that 'cat' the secure log and the output would just have the date, user, and ipaddress.
Am I going down the right path by using grep in an advanced way
My ultimate goal is to have a web page that will display the connected users and their ip addresses
(kiosk project)


