[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] The Code-Red Worm is attacking... GOD it's attacking.
- Subject: Re: [cobalt-users] The Code-Red Worm is attacking... GOD it's attacking.
- From: "Danny Daniels" <dcd@xxxxxxxxxxxxxxxxxx>
- Date: Thu Jul 19 13:05:02 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
:
> > > >
> > > > cat /var/log/httpd/access | grep .ida | wc -l
> > >
>
> Hi Shimi,
>
> Does your command there actually ask for just the past hour?...or is this
> over the length of the access log? (still studying this Linux stuff but
> not there yet..:)
>
> I ran this command and got back 259....a few minutes later it was
290.....a
> bit later on....it was 354...8:47PM Eastern time currently, I'm at 384.
> Seems I'm on the block..:)
>
That command will cat the output of /var/log/httpd/access and pipe its
output to the grep command, which will "grep" from the term .ida and the
pipe the output of grep to the wc -l command (word count, # of lines)
Basically is searches for all occurances of the term ".ida" in the httpd log
and then displays that number
Basic unix 101
-Danny
dcd@xxxxxxxxxxxxxxxxxx