Specifying SSL settings for managed Metricbeat

I've enabled a Metricbeat to use CM, before I had configurations to deal with SSL in the YAML of the Beat. Now that its managed where do I define these settings? I attempted to define then in the metricbeat.yml file, but I think my formatting was off.

This is what i attempted.

management:
  enabled: true
  period: 1m0s
  events_reporter:
    period: 30s
    max_batch_size: 1000
  access_token: ${management.accesstoken}
  kibana:
    protocol: https
    host: kibana.company.com
    ssl: null
    timeout: 10s
    ignoreversion: true
  blacklist:
    output: console|file

metricbeat.modules
-module: elasticsearch
  ssl.verification_mode: "none"

Figured it out. it needs to be defined like this (leaving here in case someone else has the same issue). Doing this means you don't need to define the metricbeat module for elasticsearch in CM

management:
  enabled: true
  period: 1m0s
  events_reporter:
    period: 30s
    max_batch_size: 1000
  access_token: ${management.accesstoken}
  kibana:
    protocol: https
    host: kibana.company.com
    ssl: null
    timeout: 10s
    ignoreversion: true
  blacklist:
    output: console|file

metricbeat.modules:
- module: elasticsearch
  period: 10s
  metricsets: ["node_stats"]
  hosts: ["https://localhost:9200"]
  username: "user"
  password: "password"
  ssl.verification_mode: "none"

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.