Skip to content

Commit

Permalink
New processor: copy_fields (elastic#11303)
Browse files Browse the repository at this point in the history
A new processor is introduced as part of support for keeping orignal messages. Options and naming follows the convention of other processors.

### `copy_fields`

This processor copies one field to another. Example configuration is below:

```yaml
processors:
- copy_fields:
    fields:
      - from: message
        to: event.original
    fail_on_error: false
    ignore_missing: true
```
  • Loading branch information
kvch authored Mar 22, 2019
1 parent e6f4299 commit 7c6fe0d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions journalbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,16 @@ setup.template.settings:
# max_depth: 1
# target: ""
# overwrite_keys: false
#
# The following example copies the value of message to message_copied
#
#processors:
#- copy_fields:
# fields:
# - from: message
# to: message_copied
# fail_on_error: true
# ignore_missing: false

#============================= Elastic Cloud ==================================

Expand Down

0 comments on commit 7c6fe0d

Please sign in to comment.