• Home
  • How to use Dynatrace
  • Log Monitoring
  • Log data acquisition
  • Log processing
  • Log processing commands

Log processing commands

Preview

Log processing commands are used to define rules for processing logs, where you can combine commands in any order needed to achieve the desired goal of the processing rule.

A rule definition consists of a sequence of consecutive processing commands chained together using the pipe character (|). Conceptually, this is similar to Unix command pipelining, where the output of a command (to the left of the pipe) is used as the input for the following command (to the right of the pipe). The pipeline must always start with a command producing a structured data stream for subsequent commands.

PARSE

The PARSE command parses the selected field with provided pattern expression (Dynatrace Pattern Language), enhancing the log record with exported values.

Format: PARSE(<field>, <pattern_expression>)

Examples:

  • Parse out attributes from different formats within a single pattern expression.
  • Parse out specific fields from JSON content.