Advertisement

05.10.2008 at 06:53PM PDT, ID: 23392268
[x]
Attachment Details

Need help with Regex syntax

Asked by newtontech4 in Perl Programming Language, Unix Systems Programming

Tags: Perl Regex

Hi

I have a log file with entries in the following format - (all in single line (no word wrap as below))

21:29:23 05/10/2008      from=192.168.0.1:162      oid=1.3.6.1.4.1.311.1.1.3.1.2      trap=link up      specific=0      traptime=0 days, 0:0:15.6      community=Public      agent=192.168.0.1      version= v1      var1=65539

What Perl regular expression would be able to parse the time, date, from=, and trap= values?

Thank you!Start Free Trial
[+][-]05.10.2008 at 10:19PM PDT, ID: 21541537

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Perl Programming Language, Unix Systems Programming
Tags: Perl Regex
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628