Hernan Marcelo Salvarezza wrote:
>
> Hello all, i am parsing a cisco log and i can'nt find the exact
> regexp,following goes the log and the script..
>
> Jul 25 10:39:12 10.0.0.1 852: 1d23h: %VOIPAAA-5-VOIP_CALL_HISTORY:
> CallLegType 2, ConnectionId 0 0 0 0, SetupTime *10:46:49.143 GMT Thu Jul
>Jul 25 10:39:12 10.0.0.1 852: 1d23h: %VOIPAAA-5-VOIP_CALL_HISTORY:
>CallLegType 2, ConnectionId 0 0 0 0, SetupTime *10:46:49.143 GMT Thu Jul
>25 2002, PeerAddress 0051122323223, PeerSubAddress , DisconnectCause 0
>, DisconnectText , ConnectTime *10:47:09.753 GMT Thu Jul 25 2002,
>DisconnectTime *
I don't have an answer for your question, because frankly that regex makes
my head hurt :-0
What I suggest is making something a little more reusable by actually
parsing the info istead of just grepping for what you need this particular
time. I would do something like this...
my $log_entry = q[