Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1.33 KB

processor-urldecode.asciidoc

File metadata and controls

60 lines (45 loc) · 1.33 KB

URL Decode

urldecode

The urldecode processor specifies a list of fields to decode from URL encoded format.

Example

In this example, field1 is decoded in field2.

  - urldecode:
      fields:
        - from: "field1"
          to: "field2"
      ignore_missing: false
      fail_on_error: true

Configuration settings

processors.asciidoc :works-with-fields!:

Name Required Default Description

fields

Yes

Contains:

  • from: "source-field", where from is the source field name

  • to: "target-field", where to is the target field name (defaults to the from value)

ignore_missing

No

false

Whether to ignore missing keys. If true, no error is logged if a key that should be URL-decoded is missing.

fail_on_error

No

true

Whether to fail if an error occurs. If true and an error occurs, the URL-decoding of fields is stopped, and the original event is returned. If false, decoding continues even if an error occurs during decoding.

See [conditions] for a list of supported conditions.