It would be helpful if you included a sample log file and your operating system.
If you are in a UNIX environment, it is very simple using awk and sort.
If your log file (called say log.txt) contains account information as the third word on each line (see the example log file below):
LOG WARNING 12345 cancelled .... LOG WARNING 67482 subscribed ....
See the dollar sign below, which is the command line:
$ awk '{print $3}' log.txt | sort -u
If you are in a Windows environment, you can download cygwin ( http://www.cygwin.com/ ) for Windows, install it and run the above command from the command line.
source share