elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.65k stars 8.23k forks source link

[Fleet] Add support for input logging configuration to Agent Policies #125956

Open joshdover opened 2 years ago

joshdover commented 2 years ago

Depends on elastic/elastic-agent#143

Agent would like to add support for setting the logging settings on an individual input basis, with a default that falls back to the Agent's overall logging settings. To provide this default, Fleet should supply a fallback in the agent policy on each input:

id: my-policy
agent:
  monitoring:
    # ...
outputs:
  # ...
fleet.hosts: ''
inputs:
  - id: <uuid>
    type: logfile
    logging:
      # TBD on env var names
      level: "${env.ELASTIC_AGENT_LOGGING_LEVEL | 'error'}"
      selectors: "${env.ELASTIC_AGENT_LOGGING_SELECTORS | '[beat]'}"
elasticmachine commented 2 years ago

Pinging @elastic/fleet (Team:Fleet)