Get_custom_fields of vsphere.yml of metricbeat?

Does anyone know how to edit the area of "get_custom_fields" in the vsphere.yml(vsphere module) of metricbeat?
I'm currently using version 7.7.0 and am wondering about how to configure the "get_custom_fields" to filter the information collected from vsphere platform precisely.

I never set it before. Is there any basic configuration format for reference?

Hi,

Example:

metricbeat.modules:
- module: vsphere
  enabled: true
  metricsets: ["datastore", "host", "virtualmachine"]
  period: 10s
  hosts: ["https://localhost/sdk"]

  username: "user"
  password: "password"
  # If insecure is true, don't verify the server's certificate chain
  insecure: false

link to documentation:

Regards

Thank you yago82.
However, what I need is the content of "get_custom_fields".
I already knew the basic configuration of vsphere module and its metricsets as mentioned in your reply, and also the official documentation.

Hi,

probably you have to set the get_custom_fields option to true. By default, it's set to false .

 username: "user"
  password: "password"
  # If insecure is true, don't verify the server's certificate chain
  insecure: false
  # Get custom fields when using virtualmachine metric set. Default false.
  **# get_custom_fields: false**

Regards

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