Parser Management

To create, modify or remove a parser, you can use the parser management function.

Click ‘Manage…’, open parser dialog.

Here are existing parsers.

1. Create a new parser

A log file is composed of some parts. These parts are divided by separators, such as space, quotation mark, bracket, etc.

E.g. one line of a log file:

In Log File Viewer Standard, each part corresponds to a column. For each column, you can create its name, the start/end separator in parser dialog.

For some columns, you can even create their child columns to subdivide the contents.

E.g.

For the above log file format, click ‘Add…’, create a new parser:

Enter the following:

Column name = IP; Start with = empty; End with = a space;

Column name = Time Info; Start with = [; End with = ];

 Child column name = Date Time; Start with = empty; End with = a space;

 Child column name = Time Zone; Start with = empty; End with = empty;

Column name = Target; Start with = ; End with = ;

 Child column name = Method; Start with = empty; End with = a space;

 Child column name = Request; Start with = empty; End with = empty.

Parser result:

2. Modify a parser

Click one column’s name in parser-tree, its corresponding information is displayed on the right. Modify it, click ‘Save’ to save this change.

3. Test a parser

When a parser has been created or changed, paste a line of the log file on the edit-box at the bottom of the parser dialog, click ‘Test’ to know whether the parser works successfully.

Copyright©Marmot Studio, 2012