I need to do a search through lots of mail log files, where unfortunately the details I need to pull out are on 2 different lines in the logs. I need to search a lot of email transactions so trying to find a way to automate this.
For example, first I need to search on the recipient email address, this will locate a line in the logs, and that line (and all related log entries for that specific email transaction) contains an ID CODE, then I'd need the other log entries that contain that same ID code.
So there are 2 search operations that have to happen (first finding all lines that contain a particular email address), and then parsing the ID code from each and searching on that.
At this point I don't care if this is a WIndows application, Perl Script, Bash Script, orPowershell script, or whatever but pretty desperate to find something that can do this. Even if the output isn't pretty and contains more info that I need that is fine.
Something that runs on WIndows would be ideal but if I have to copy the logs to a linux box to get this done that's fine too.