- Winlogbeat Reference: other versions:
- Overview
- Contributing to Beats
- Getting Started With Winlogbeat
- Setting up and running Winlogbeat
- Upgrading Winlogbeat
- Configuring Winlogbeat
- Set up Winlogbeat
- Specify general settings
- Configure the internal queue
- Configure the output
- Specify SSL settings
- Filter and Enhance the exported data
- Parse logs by using ingest node
- Set up project paths
- Set up the Kibana endpoint
- Load the Kibana dashboards
- Load the Elasticsearch index template
- Set up logging
- Use environment variables in the configuration
- YAML tips and gotchas
- winlogbeat.reference.yml
- Exported fields
- Securing Winlogbeat
- Troubleshooting
WARNING: Version 6.1 of Winlogbeat has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Configuring Authentication Credentials for Winlogbeat
editConfiguring Authentication Credentials for Winlogbeat
editWhen sending data to a secured cluster through the elasticsearch
output, Winlogbeat must either provide basic authentication credentials
or present a client certificate.
To configure authentication credentials for Winlogbeat:
-
Create a role that has the
manage_index_templates
andmonitor
cluster privileges, andread
,write
, andcreate_index
privileges for the indices that Winlogbeat creates. You can create roles from the Management / Roles UI in Kibana or through therole
API. For example, the following request creates awinlogbeat_writer
role: -
Assign the writer role to the user that Winlogbeat will use to connect to Elasticsearch:
-
To authenticate as a native user, create a user for the Winlogbeat to use internally and assign it the writer role. You can create users from the Management / Users UI in Kibana or through the
user
API. For example, the following request creates awinlogbeat_internal
user that has thewinlogbeat_writer
role:POST /_xpack/security/user/winlogbeat_internal { "password" : "x-pack-test-password", "roles" : [ "winlogbeat_writer"], "full_name" : "Internal Winlogbeat User" }
-
To authenticate using PKI authentication, assign the writer role to the internal Winlogbeat user in the
role_mapping.yml
configuration file. Specify the user by the distinguished name that appears in its certificate.winlogbeat_writer: - "cn=Internal Winlogbeat User,ou=example,o=com"
For more information, see Using Role Mapping Files.
-
-
Configure authentication credentials for the
elasticsearch
output in the Winlogbeat configuration file:-
To use basic authentication, configure the
username
andpassword
settings. For example, the following Winlogbeat output configuration uses the nativewinlogbeat_internal
user to connect to Elasticsearch:output.elasticsearch: hosts: ["localhost:9200"] index: "winlogbeat" username: "winlogbeat_internal" password: "x-pack-test-password"
-
To use PKI authentication, configure the
certificate
andkey
settings:
-