Hi !!
I have the following log file that a perl program is monitoring. I wanted to find out that the below codes means ?
Here's the Entry of the LogFile
1.2.3.4 - Unauth [09/Oct/2003: 10:12:06 -0700] "GET / HTTP/1.1" 200 19 +79
Here's the code. But I don't know what it means.
my ($srcip) = $whole_event_string =~ /^(\d+\.\d+\.\d+\.\d+)/;
I only understand that it is checking whether the entry would have something like IP Address as above. But does it pass the IP address to the $srcip variables ?
Please help ....
In reply to Need advice on PERL by ccrash
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |