You have a IP-Address from a PC, and you want to know which web-sites ware visited from this PC.
Grep for PCs IP-Address in the access log of your proxy box.
As result you will get a list with visited sites.
1 | grep 172.16.0.5 /var/log/squid3/access.log | cut -d" " -f7 | sort -u | less |
someone says
Hey, the below seems to work better for me:
sudo grep IP /var/log/squid3/access.log | awk ‘{ print $7 }’ | sort -u
lisa says
thanks