Register
It is currently Wed Apr 23, 2014 11:36 am

Sorting with multiple keys and key types.


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Sat Dec 03, 2011 4:08 pm   

Joined: Thu Dec 01, 2011 8:32 am
Posts: 1
Greetings all,

I have a data file that that contains data in the following format:

username event ip_address date (nn/mmm/nnnn) time (nn:nn:nn)

The event is either a user login or a user logout.

Ultimately my goal is to produce output with "paired" events in the following format:

username login ip_address date time
username logout ip_address date time (or no logout for user "username" on "ip_address")

I am having a hard time wrapping my head around how best to sort this into the format I need.
There could be thousands of users logged in at any one time and I have been browsing this data manually
looking for orphans. I need to find a way to automate this process.

Suggestions would be appriciated.

Thanks,


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP