Parser Properties for an XML FlexConnector

The XML FlexConnector parser builds a tree representation of the XML log file. A root node is at the top of the tree, hop nodes are in between, and trigger nodes are at the bottom (where they generate events). The following is an example of an XML FlexConnector configuration file:

In addition to the common properties listed in Parser Structure, the following sections list the optional and mandatory properties for an XML FlexConnector configuration file:

Note: You can also configure optional properties in the agent.properties file that when configured allow you to control which log files to process in a folder, whether to process the folder and subfolders recursively, and so on. These properties are discussed in Detecting File Processing Latency.

Namespace

Optional. However, if your XML log file uses explicit namespaces or a default namespace, you must specify those namespaces using these properties:

Hop Nodes

Optional. Hop nodes are the nodes in the path from the root node to the event triggering node. These nodes are necessary when tokens need to be captured from nodes other than the triggering node or when events pertaining to a particular node need to be grouped in one block.

Multiple hop node levels can be defined with each new level of hop nodes defined in reference to the previously defined level. Hop nodes can also reference root nodes directly as variables.

To define hop nodes, use these properties:

Trigger Nodes

Mandatory. These are the nodes that trigger events. An XPath/XQuery path expression for a trigger node can be the last defined hop node or the root node if no hop nodes are available.

To define trigger nodes, use this property:

trigger.node.expression=$host/applications/application

Token Mappings

Mandatory. In addition to the token properties listed in Token Declarations, you must specify these two properties for the XML parser:

Examples of Token Mappings

Extra Events

Optional. If you need your FlexConnector to collect different event types for the same trigger node or from different trigger nodes, you can use this property to specify other XQuery configuration files in the current configuration file.

To specify extra events, use these properties: