Skip to main content

Log StreamLog Stream Guide

Reorder Regular Expressions

After you have used the methods above to generate regular expressions and map them to CIM fields, consider the order of rows in the Regular Expressions table in the UI. A parser evaluates its regular expressions against a log consecutively from top to bottom. Ensure that the regular expressions in the table at the top of the screen are in an order that correctly parses your logs.

You can edit the rows of regular expressions in the following ways:

  • icon-move.png – To change the order of the rows in the table, click the move icon on the left of a row and drag it to another location in the table.

  • icon-edit.png – To edit a saved row, click the edit icon and make modifications to the field mapping.

  • icon-delete.png – To remove a row, click the delete icon to remove the mapped field.

When you are satisfied with the order of the rows in the Regular Expressions table, review the matched fields and values as they are represented in the sample log line in the UI.

If you enter multiple regular expressions for the same field, the values that are parsed, but will not be extracted, are outlined under Sample Log Lines.