type: log
paths:
{{ range $i, $path := .paths }}
 - {{$path}}
{{ end }}
exclude_files: [".gz$"]

json.keys_under_root: false
json.add_error_key: true
processors:
- add_fields:
    target: ""
    fields:
      ecs.version: 1.12.0
    when:
      and:
        - not:
            has_fields: ['ecs.version']
        - not:
            has_fields: ['json.ecs.version']
