Two-Find-And-Format Logfile Summary Tool

Two-Find-And-Format Logfile Summary Tool

Trying to find some abuse of our email system we wanted to get a quick list with date, time, sender and recipient of mail to internet.

In the GWIA log-files this information is on separate lines. And if you get information of multiple day's, you also need part of the filename.

So I wrote this (configurable) tool. It uses a tfaf.ini file (example in the ZIP file) and commandline parameters.

To get information of all your GWIA logfiles, you can use:

for %I in (????GWIA.*) do TFAF /sf=%I /rf=result.txt

Information on use of the program is given starting the program without parameters.

Questions, suggestions, whishes:
Labels (1)


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
How about making it so that it will return all senders and all recipients in a nicer format than the gwia logs use?
Also it probably wouldn't take much to throw a gui on this so you could type your receipient and sender into edit boxes and have it display the results in a grid component! I see loads of potential here!
This program doesn't take into account for how the GWIA processes multiple messages concurrently. An incoming message and an outgoing message could be logged before all the recipients are listed for the incoming message.

This program simply takes the recipients and apply them to the last sender from a GWIA log. There is a MSG number that keeps the records tied together. This program ignores it.

For example (bolded records belong together):
GWIA LOG - Stripped down
08:00:00 040 MSG 100001 Sender:
08:00:00 040 MSG 100001 Recipient:
08:00:00 03C MSG 100002 Processing inbound message:
08:00:00 03C MSG 100002 Sender:
08:00:00 03C MSG 100002 Recipient:
08:00:00 040 MSG 100001 Recipient:
08:00:00 03C MSG 100002 Queuing to MTA

This program will incorrectly show that sent a message to, both of which are outside
Top Contributors
Version history
Revision #:
5 of 5
Last update:
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.