I’m looking for a peice of software which can help me debug issues on a website by using apache logs. Here’s the scenario.
I have a client on a website who has just performed something which is unexpected, I have his IP address because it got logged with a purchased transaction.
Is there a program out there that’ll let me view step by step which a selected user did on the site, using the apache logs.
e.g. IP address a.b.c.d set…
IP address a.b.c.d
Time Date / Path
18:02 / index.htm
18:03 / shop.htm
18:04 / product1.htm
That way I can see exactly how a user arrived where they did.
Thanks for any help you can give.
That’s one line of bash. I hope you’ve got your apache log type set to “Combined”, and a bash shell at your disposal. Then the command
will yield something like this (Referers are in parentheses):
(Just remember to replace
$IPand$LOGFILEwith your values … the results are from my webserver and were produced by one page visit.)If you’re only interested in, say, requests for .html files, extend the command line with another grep:
The last grep filters out any lines that do not have a “.html” string in the second column of the output. But it also filters out all requests on directories!