Looking for a search tool/application or script that parses SmarterMail log files

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.
LVL 1
VasAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewIT / Software Engineering ConsultantCommented:
Can you provide a sample of the data file (I assume it's a text file), and then an example of what you want to search for, and the results you want returned for that search.

~bp
0
VasAuthor Commented:
Good news, I found a custom written search tool that someone wrote for the exact mail server we use, tested the tool and it's searching exactly how I needed.

I'll post the link below in case anyone else finds this thread also looking for a search tool for Smartermail log files:


https://portal.smartertools.com/community/a1115/free-log-parsing-analyzer-software-for-smartermail.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bill PrewIT / Software Engineering ConsultantCommented:
Good find, glad you found a tool that can get you what you wanted.

You might want to edit the original question and add the specific mail server name for future reference, maybe even in the question title.  Then you can accept your answer for 0 points to close the question as solved, and it will be available for future reference if someone has the same need.

~bp
0
VasAuthor Commented:
found a pre-built app that does this
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.