B
Blake
I'm trying to figure out how to grep a bunch of log files into one
file.
Basically I have virtual hosts set up like this
/home/user/site/log
There's about 85 like that. Within /log/ there is an access_log file
So what I want to do is to be able to grep out all the hits in a
certain hour to see who's killing the server.
So what I'd like to do is do something like
find /home/ -name access_log
while { there's a log }
grep July 27 10pm
send that output to a single file
Then I can grep out the hits from that one file to see who's kiling
me.
What's the best what to do that?
file.
Basically I have virtual hosts set up like this
/home/user/site/log
There's about 85 like that. Within /log/ there is an access_log file
So what I want to do is to be able to grep out all the hits in a
certain hour to see who's killing the server.
So what I'd like to do is do something like
find /home/ -name access_log
while { there's a log }
grep July 27 10pm
send that output to a single file
Then I can grep out the hits from that one file to see who's kiling
me.
What's the best what to do that?