Link to home
Start Free TrialLog in
Avatar of delaney
delaney

asked on

Extracting data from log file w/ pattern recognition

What is the best way to assign variables to data in a log file?  

Example:
       If I wanted to extract the IP address for the latest log-on of a user from the pm.log file in /var/log to use to compare it to another IP address, how would I instruct perl to find the IP address for that user at that time in that log file?

I've tried pattern recognition, but can't get it to work properly  What would be the syntax if I used patern recog?.


ASKER CERTIFIED SOLUTION
Avatar of cymbal
cymbal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial