You can use the wizard to create or modify a pattern use the wizard to add and name columns that represent the structure of the records. The wizard includes features to set different indications on each column, such as type, length, optional, and column name. More information on each type is presented in the wizard itself.
Inserting a Field or Separator
To insert a field:
- In the Wizard pattern editor, click the + button.
The Add Field dialog box opens. - In Type, select Separator or another field type, such as String, Text, Date, Priority, Choices, Number, Timestamp, New Line, End of Event, GeoIP, IP Address, Term, Free Text, or an Advanced Option –Regular Expression, Function, Converter, or Google App Engine.
The parameters that have to be provided for the selected field type are displayed. - If you want to configure more parameters for the field, click the Advanced link to open the additional parameters for the selected field type.
Complete the parameters, and then click Apply.
Inserting a Separator
You can insert between log fields one or more spaces or tabs, or any other separator that you choose.
- In Type, select Separator.
- In Separator, select Space, Tab, or Custom.
- If you selected Custom, in Insert separator, type the character to be used as a separator.
- In Num of repeats, type the number of the selected separator to insert.
- To configure advanced settings for the separator, click Advanced. Otherwise, continue with step 7.
- If the selected separator does not appear in all records, select the Optional checkbox.
- Click Apply.
The log records are refreshed in the bottom pane with the parsing results.
Note: After clicking Apply, you may get an error, such as The marked field causes the log to be unparsed. In this case, edit or remove the separator.
Inserting a String
You can insert into a log record a field that has a string value.
- In Type, select String.
- In Name, type the name of the field.
- To configure advanced settings for the field, click Advanced. Otherwise, continue with step .
- In UI Message Len
- In Num of repeats, type the number of the selected separator to insert.
- If the selected separator does not appear in all records, click Advanced, and then select the Optional checkbox.
- Click Apply.
The log records are refreshed in the bottom pane with the parsing results.
Note: After clicking Apply, you may get an error, such as The marked field causes the log to be unparsed. In this case, edit or remove the separator.