Types of Parser
The system allows you to define the following types of Parsers to parse the variables. For each type of Parser, a set of rules work together to define how variables are extracted from Sample data text. With valid rules, the output of the Parser will be highlighted instantly inside the input text. You can select a parser pattern from the + New Pattern menu.
This section provides a brief summary of the following parser patterns.
Auto Pattern
In Auto Parser, the system automatically generates a parser pattern based on the selected words. Support Single or Multiple types and switching between them. For more information, see Auto Parser.
Single Variable
A Variable Parser can parse a single-value variable, such as the version number, etc., by anchoring keywords before and after the variable. See Define a Variable Parser for more details.
Paragraph
A Paragraph Parser can parse variables in recurring paragraphs, such as collisions and CRC errors for interfaces, etc., by anchoring paragraph identifier (ID) lines. See Define a Paragraph Parser for more details.
Table
A Table Parser can parse table-formatted text, such as NDP tables and VRF tables. See Define a Table Parser for more details.
Collector
A Collector Parser can find all matched items based on the defined keywords, automatically group those items by keyword value, and parse the required variables based on the groups. See Define a Collector Parser for more details.
JSON Table
The JSON Table pattern is used to parse JSON-formatted text, such as Cisco ACI and AWS, among others.
Dependency
In the Dependency pattern, the parser results of different patterns can be merged during the parsing process to obtain the desired output, which is a table variable constructed from all the variables in all the level patterns.
Merge Table
In the Merge Table pattern, you can merge the table variables from two parser output tables by paired keys, enabling the combination of configlets from different paragraphs as well.
Append Table
The Append Table pattern is used to combine the rows from one parser output table with another, creating a new table. For the selected output tables, cells with matching column titles are appended; otherwise, empty cells are inserted.
Aggregate Table
The Aggregate Table pattern merges rows in an output table based on a specified column key and removes selected columns from the parser output.