Use internal collection to send monitoring data
Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud. Availability This functionality is generally available and ready for production usage. Serverless interfaces and procedures might differ from classic Elastic Stack deployments. The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability This functionality is generally available and ready for production usage. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Serverless
Generally available
Stack
Generally available
Use internal collectors to send Beats monitoring data directly to your monitoring cluster. Or as an alternative to internal collection, use Use Metricbeat collection. The benefit of using internal collection instead of Metricbeat is that you have fewer pieces of software to install and maintain.
Create an API key or user that has appropriate authority to send system-level monitoring data to Elasticsearch. For example, you can use the built-in
beats_systemuser or assign the built-inbeats_systemrole to another user. For more information on the required privileges, see Create a monitoring user. For more information on how to use API keys, see Grant access using API keys.Add the
monitoringsettings in the Winlogbeat configuration file. If you configured the Elasticsearch output and want to send Winlogbeat monitoring events to the same Elasticsearch cluster, specify the following minimal configuration:YAML monitoring: enabled: true elasticsearch: api_key: id:api_key username: beats_system password: somepassword- Specify one of
api_keyorusername/password.
If you want to send monitoring events to an Elastic Cloud monitoring cluster, you can use two simpler settings. When defined, these settings overwrite settings from other parts in the configuration. For example:
YAML monitoring: enabled: true cloud.id: 'staging:dXMtZWFzdC0xLmF3cy5mb3VuZC5pbyRjZWM2ZjI2MWE3NGJmMjRjZTMzYmI4ODExYjg0Mjk0ZiRjNmMyY2E2ZDA0MjI0OWFmMGNjN2Q3YTllOTYyNTc0Mw==' cloud.auth: 'elastic:YOUR_PASSWORD'If you configured a different output, such as Logstash or you want to send Winlogbeat monitoring events to a separate Elasticsearch cluster (referred to as the monitoring cluster), you must specify additional configuration options. For example:
YAML monitoring: enabled: true cluster_uuid: PRODUCTION_ES_CLUSTER_UUID elasticsearch: hosts: ["<HOST_URL_1>:<PORT_1>", "<HOST_URL_2>:<PORT_2>"] api_key: id:api_key username: beats_system password: somepassword- This setting identifies the Elasticsearch cluster under which the monitoring data for this Winlogbeat instance will appear in the Stack Monitoring UI. To get a cluster’s
cluster_uuid, call theGET /API against that production cluster. - This setting identifies the hosts and port numbers of Elasticsearch nodes that are part of the monitoring cluster.
- Specify one of
api_keyorusername/password.
If you want to use PKI authentication to send monitoring events to Elasticsearch, you must specify a different set of configuration options. For example:
YAML monitoring: enabled: true cluster_uuid: PRODUCTION_ES_CLUSTER_UUID elasticsearch: hosts: ["<HOST_URL_1>:<PORT_1>", "<HOST_URL_2>:<PORT_2>"] username: "" ssl.certificate_authorities: ["/etc/pki/root/ca.pem"] ssl.certificate: "/etc/pki/client/cert.pem" ssl.key: "/etc/pki/client/cert.key"You must specify the
usernameas""explicitly so that the username from the client certificate (CN) is used. See SSL for more information about SSL settings.- Specify one of
Start Winlogbeat.