grokevt-parselog(1) | grokevt-parselog(1) |
grokevt-parselog - Parse a windows event log and generate human-readable output based on message resources stored in a database.
grokevt-parselog -?|--help
grokevt-parselog -l database-dir
grokevt-parselog -m database-dir log-type
grokevt-parselog [-v] [-H] [-h] database-dir log-type
grokevt-parselog reads a windows event log (.evt file) and combines that information with messages templates and other resources stored in a pre-generated database. This is then printed to stdout in a comma-separated values (CSV) format. The database must first be created by grokevt-builddb(1).
Application
Security
System
But others may have been created by third party software. Use the -l option to print a list of all available log types. (The log names are case-sensitive.)
While the output format is compatible with programs (such as spreadsheets) that understand the de-facto CSV standard format, the format is additionally constrained in that each log entry is written to a single line. Also, special characters and non-printable characters are encoded using a URL-like encoding format of "%XX" where XX are the hexadecimal digits of an encoded character. New line characters and other special characters along with binary data are encoded this way to allow for easy use of grep(1) and similar command line tools.
To list all available logs types stored in '~/example.grokevt':
grokevt-parselog -l ~/example.grokevt
To read the 'Application' log from the database stored in '~/example.grokevt' and print it to stdout:
grokevt-parselog ~/example.grokevt Application
To read the 'System' log from the database stored in '~/example.grokevt' and print it to stdout without a header, and with verbosity turned on:
grokevt-parselog -v -H ~/example.grokevt System
Probably a few. This script has not been extensively tested with some guest platforms.
The file event log file format is pretty well understood and implemented, but some diabolical wrapped, dirty, or fragmentary logs may not be correctly parsed.
Unicode support is currently limited. Any suggestions on how to better handle unicode output would be appreciated.
Originally written by Jamie French. Converted to Python and extended by Timothy D. Morgan. Andreas Schuster has contributed greatly to the understanding of the event log format.
Please see the file "LICENSE" included with this software distribution.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more details.
grokevt(7) grokevt-addlog(1) grokevt-builddb(1) grokevt-dumpmsgs(1) grokevt-findlogs(1) grokevt-ripdll(1)
20 June 2011 | File Conversion Utilities |