zac_carl has asked for the wisdom of the Perl Monks concerning the following question:
I have a simple search to make through a log.
[2011-04-16 HH:mm:ss,xyz] conn=1000000 fd=0 slot=0 connection from d1. +d2.d3.d4 to x1.x2.x3.x4 port xyzq [2011-04-16 HH:mm:ss,xyz] conn=1000000 op=0 BIND dn="" method=0 versio +n=3 [2011-04-16 HH:mm:ss,xyz] conn=1000000 op=0 RESULT err=0 tag=0 nentrie +s=0 etime=0
From the above text i have to find all the ip address of the format x1.x2.x3.x4 which have same connection number(conn=1000000) as the one with text /op=0 BIND dn=""/
What would be the fatest way to do this ?
I dont like the idea of saving the all connection numbers(e.g conn=1000000) with matched text /op=0 BIND dn=""/ and search the whole log again for ip address that matches the connection number
Thanks for help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl log search
by NetWallah (Canon) on Jun 04, 2011 at 05:40 UTC | |
|
Re: perl log search
by jffry (Hermit) on Jun 03, 2011 at 23:25 UTC | |
by zac_carl (Acolyte) on Jun 04, 2011 at 01:49 UTC | |
|
Re: perl log search
by zac_carl (Acolyte) on Jun 03, 2011 at 21:27 UTC |