Debian/ Ubuntu
Before installing the agent on the operating systems we support below, you need to download the certificate according to the instructions at Initialize Certificate . Information on setting up the agent is in the readme file, and the instruction scripts are also in the downloaded certificate file. Use this information with the instructions below to complete Agent for Log setup.
Setting
Determine the type of agent you want to install and follow that agent's instructions below:
FilebeatLogstash
If using a script prepared in the download folder, run the command
If installing manually, run the command
Next you need to configure agent log. The configuration files below have been prepared by us in the script when downloading the certificate. The description below helps readers imagine what it would be like if we created a manual.
Configuration
FilebeatLogstash
The configuration file /etc/filebeat/filebeat.yml.
below will retrieve all logs in the file /var/log/app.log
and push it to vMonitor Platform:
In there:
At
input
the path to the log fileAt
output
, the variables you need to fill in are taken from the certificate download step above:$BOOTSTRAP_SERVERS, $TOPIC
taken from file info.md$PATH_FILE_VNG_TRUST_PEM,$PATH_FILE_USER_CER_PEM,$PATH_FILE_USER_KEY_PEM
is the path to the file VNG.trust.pem user.cer.pem user.key.pem
Administration
If installed manually, by default the agent log after installation will not automatically turn on, you should check the start and enable (start automatically with the machine) for them.
FilebeatLogstash
| |||||||
Last updated