I'd like to watch my Apache logs as new visitors come. How can I see what pages are being accessed in real time?
I'm so happy you said Apache, because if you had said IIS, not only wouldn't I have had to do painful research to answer you, but I would have thought less of you for foolishly running your web server on that abysmal platform!
It's so easy on any Linux system. Assuming your logs are in Common Log Format, you can just go to a Bash prompt and do this:
If your logs are NOT in that format, this might work anyway or I bet you can figure out what to change.
That works on Mac OS X too. Your own logs might be in /private/var/log/apache2. You can find the main logs in /var/log/apache2 also and can use Utilies-> Console to view them.
But of course you need "tail" and "grep". You don't have those on Windows unless you install Services For Unix or CygWin, but sometimes even that doesn't work well and you may not want to install all that stuff just for this. Maybe something here will help. That Baretail Pro looks like it would do the job.
My question for you is: How much time do you spend watching log files? Haven't you better things to do?
No, I'm kidding. I do this too, and I don't have to be all that bored - just curious as to what's going on NOW!