- Send metrics from http://localhost:4444/status in JSON format by Filebeat to Logstash
- Metrics are sent by Filebeat and should be installed on the instance where Selenoid is.
- we can configure Filebeat in
filebeat.yml
so that it would send Docker container logs to Logstash automatically. Als, we can - Change URL (
output.logstash
) infilebeat.yml
- on which instance of Logstash need to send data
- Logstash need
pipeline.yml
to list all the filebeats (data providers) listening on which port. - Filters - Also contains filters - what needs to be processed.
- Output - sends data to elasticsearch
- Need to setup index patterns - which collections we want how from Elasticsearch
- https://github.com/aerokube/elk-config
- https://medium.com/@aandryashin/selenium-clear-as-a-bell-64b672f42689
From https://github.com/aerokube/elk-config
This repository contains example configuration files used to send logs from Aerokube products to Elastic stack. We are using:
- Filebeat to collect log files of running Aerokube tools containers.
- Logstash to preprocess log files.
- ElasticSearch to store and index log data.
- Kibana as user interface.
-
We assume here that you have two Linux hosts: first with Selenoid or Ggr (application host) and second where logs will be stored (ELK host).
-
On application host go to
beats
directory and start Filebeat with Docker Compose:
$ cd beats
$ docker-compose up -d
- On the ELK host go to
elk
directory and start ELK stack with Docker compose:
$ cd elk
$ docker-compose up -d