Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 907 Bytes

processor-decode_duration.asciidoc

File metadata and controls

31 lines (24 loc) · 907 Bytes

Decode duration

decode_duration

The decode_duration processor decodes a Go-style duration string into a specific format.

For more information about the Go time.Duration string style, refer to the Go documentation.

Example

processors:
  - decode_duration:
      field: "app.rpc.cost"
      format: "milliseconds"

Configuration settings

Name Required Default Description

field

yes

Which field of event needs to be decoded as time.Duration

format

yes

milliseconds

Supported formats: milliseconds/seconds/minutes/hours