Step 3: Configure Winlogbeat to use Logstashedit


To use Logstash as an output, you must install and configure the Beats input plugin for Logstash.

If you want to use Logstash to perform additional processing on the data collected by Winlogbeat, you need to configure Winlogbeat to use Logstash.

To do this, you edit the Winlogbeat configuration file to disable the Elasticsearch output by commenting it out and enable the Logstash output by uncommenting the logstash section:

#----------------------------- Logstash output --------------------------------
  hosts: [""]

The hosts option specifies the Logstash server and the port (5044) where Logstash is configured to listen for incoming Beats connections.

For this configuration, you must load the index template into Elasticsearch manually because the options for auto loading the template are only available for the Elasticsearch output.

To test your configuration file, change to the directory where the Winlogbeat binary is installed, and run Winlogbeat in the foreground with the following options specified: .\winlogbeat.exe test config -c .\winlogbeat.yml -e.