I'm running a Cent OS Linux apache web server, and its primary function is to serve the content in an iframe to one specific ip address. I want to see all ip addresses that have accessed the web server over the last month. Is there generally a log I can view with that information on apache web servers? I haven't installed any extra logging, it's a basic apache install. I understand that all configurations are different.
Substitute the path of your apache access log, and it'll spit out a list of all IP addresses that have accessed your server.
Here's what that command is doing:
This will list out the first field of the access_log, using the space character as a delimiter. The output of this is then piped to:
This, as you'd expect, does a numeric sort of the data received and then pipes the resulting list to:
Which eliminates duplicate entries on adjacent lines. Its output is displayed on-screen.
You might consider awstat to help visually "slice and dice" access trends across time as well.