|I'm trying to create a batch file to read three years of log files. |
Sample with highlights of what you are looking for:
 Fri 01Jan10 00:05:22 - (nnnnnn) User firstname.lastname@example.org logged in
 Fri 01Jan10 00:06:28 - (nnnnnn) Sending file d:\ftp_sites\database.iss
 Sat 01Jan11 00:09:20 - (nnnnnn) User "email@example.com" logged in
 Sat 01Jan11 00:12:42 - (nnnnnn) RETR /software/tools/withtb.exe
Basically i need a findstr string to find the users email address or login, above its firstname.lastname@example.org and then grab the session ID in (nnnnnn) and find all session ID's with the string Sending file.
Can anyone help?