Hello,
We are testing Elastic-Agent and found that the streams configuration we can add "processors" that take care of adding custom fields for things like Filebeats/Metricbeats. This is a useful feature but we cannot find how to do this in the endpoint configuration for events. We have the option to enable/disable the events but no option to add processors for them.
Can you assist us in configuring the same sorts of processors we use for our beats data into the events of the endpoint integration?
Example elastic-agent.yaml snippet:
inputs:
- id: XXXX
  name: system-1
  revision: 1
  type: logfile
  use_output: default
  meta:
    package:
      name: system
      version: 0.12.7
  data_stream:
    namespace: XXX
  streams:
    - id: logfile-system.syslog-XXX
      data_stream:
        dataset: system.syslog
        type: logs
      paths:
        - /var/log/messages*
        - /var/log/syslog*
      exclude_files:
        - .gz$
      multiline:
        pattern: ^\s
        match: after
      processors:
        - add_locale: null
        - add_fields:
            target: ''
            fields:
              ecs.version: 1.9.0
        - add_fields:
              target: ''
              fields:
                fields.udid: XXX
                agent.version: test-unknown
                agent.id: XXX
                organization.name: company-1
                organization.id: XXX
                organization.parent_id: XXX
Example elastic-endpoint.yaml:
policy:
    linux:
      logging:
        file: info
      events:
        process: true
        file: true
        network: true
    windows:
      popup:
        malware:
          enabled: true
          message: 'Elastic Security {action} {filename}'
        ransomware:
          enabled: true
          message: 'Elastic Security {action} {filename}'
      malware:
        mode: prevent
      logging:
        file: info
      antivirus_registration:
        enabled: false
      events:
        registry: true
        process: true
        security: true
        file: true
        dns: true
        dll_and_driver_load: true
        network: true
      ransomware:
        mode: prevent
    mac:
      popup:
        malware:
          enabled: true
          message: 'Elastic Security {action} {filename}'
      malware:
        mode: prevent
      logging:
        file: info
      events:
        process: true
        file: true
        network: true