Install Sidecar on Windows
In order to install Graylog Sidecar, there are a few preparatory steps that should be taken both in Graylog and on the host machine. Please note the following guide describes a self-managed Graylog Sidecar configuration. For information on using Sidecar in Graylog Cloud, please see Sidecar in the Cloud.
Installation Steps in Graylog
Prerequisites
Before installing Sidecar, make sure that you have a Beats input in order to receive data from the Beats collector, and configure your input to receive Sidecar logs on port 5044
.
- Navigate to System > Inputs.
- Select Beats as the input.
- Click Launch new input to prompt a new form.
- Check the Global box if you would like to receive the data set among other nodes.
- Make sure that the port field is set to
5044
.
Create an API Token
- Navigate to System > Sidecars.
- Click on Create or reuse a token for the graylog-sidecar user.
- Enter a name into the Token Name field.
- Click on Create Token.
Download Sidecar
You can find .deb
and .rpm
packages in our package repository. Please follow the version matrix to select the correct package and download it from our GitHub page.
Sidecar Version | Graylog Server Version |
---|---|
1.5.x | 5.2.x or higher |
1.4.x |
5.0.x or higher |
1.3.x | 5.0.x |
1.2.x | 3.2.5 or higher |
1.1.x | 3.2.5 or higher |
Install the Sidecar Service in Windows
The Windows installer can be run interactively:
$ graylog_sidecar_installer_1.5.0-1.exe
Complete the following steps in the Windows Sidecar installer:
- Name your Sidecar instance.
- Enter your server API token.
- Click Install to close the installer.
Once finished, you can change or configure the sidecar.yml
file, which should be located in C:\\Program Files\\Graylog\\sidecar\\sidecar.yml
. Most configuration parameters come with built-in defaults. The only parameters that need adjustment are server_url
and server_api_token
.
Alternatively, you can run the installer in silent mode:
$ graylog_sidecar_installer_1.5.0-1.exe /S -SERVERURL=http://your Graylog IP address or DNS name/api -APITOKEN=yourapitoken
Note that the Windows installer supports additional options in silent mode, such as:
-TAGS=["example","IIS"], -NODENAME=mynodename, -NODEID=1234, -SENDSTATUS=false,-TLSSKIPVERIFY=true, -UPDATEINTERVAL=10s.
Activate Sidecar as a System Service
Now, open a command prompt using administrator rights. Run the following commands (and prefix the commands with &
if you are using PowerShell):
"C:\Program Files\graylog\sidecar\graylog-sidecar.exe" -service install
"C:\Program Files\graylog\sidecar\graylog-sidecar.exe" -service start
Add a Winlogbeat Collector Configuration
Follow the steps below to add a Winlogbeat collector configuration to your Sidecar in order to ingest Windows event logs. If you would like to add a different collector, proceed to Install Sidecar Collectors.
- Navigate back to Graylog and locate your Windows device under System > Sidecars.
- Select the winlogbeat collector, which is under the Windows Sidecar machine on the left.
- Select the windows_sidecar configuration (which you had set up earlier). This can be found under the Configure drop-down menu on the right-hand side.
-
Click the Process drop-down menu on the right-hand side and choose a configuration.
-
Click Start.
Your Graylog instance will now start collecting logs from your Windows machine. Now you can proceed to Getting Started with Graylog Sidecar for details on how to use your Sidecar collector(s).
sidecar.yml
Configuration Reference
Below is a list of parameters used in the sidecar.yml
configuration file for your reference:
Parameter |
Description |
---|---|
|
URL to the Graylog API, e.g.: |
server_api_token
|
The API token to use to authenticate against the Graylog server API. |
node_id
|
The node ID of the sidecar. This can be a path to a file or an ID string. |
node_name
|
Name of the Sidecar instance, will also show up in the web interface. |
update_interval
|
The interval where the sidecar will fetch new configurations from the Graylog server in seconds The Graylog server considers all sidecars that frequently perform these updates "active". In order to globally configure a threshold which determines when a sidecar should be considered "inactive," please navigate to "Sidecars System" under the System/Configuration menu. |
tls_skip_verify
|
This configures if the sidecar should skip the verification of TLS connections. Default: false |
send_status
|
This controls the transmission of detailed sidecar information like collector status, |
list_log_files
|
Send a directory listing to Graylog and display it on the host status page, |
cache_path
|
The directory where the sidecar stores internal data. Default: |
|
The directory where the sidecar generates configurations for collectors. |
|
The directory where the sidecar stores its logs. Default: |
|
The maximum size of the log file before it gets rotated. Default: |
|
The maximum number of old log files to retain. |
|
A list of binaries that are allowed to be executed by the Sidecar. |
tags
|
List of configuration tags. All configurations on the server side that match the tag list will be fetched and merged by this instance. |