I need to be able to see all requests made by an IP in a given day.
I'm not familiar with grep and was wondering if anyone could give me a hand.
|
|
I like awk for a question like this; you can match multiple fields in a single command. If we assume you're using a standard Apache log format, field 1 is the IP address and field 5 is the date of the access:
Apache stores the date in the ridiculous DD/Mon/YYYY format, so you need to escape the A solitary
Since the request URI is field 7 in the log. |
|||
|
|
Assuming that your log is at
e.g. to search for 127.0.0.1
|
|||||
|