Skip to content
Snippets Groups Projects

update monit docs

Merged Marta Vila Fernandes requested to merge monit into master
2 files
+ 23
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 13
0
# Log monitoring
The Linux team is responsible for 3 main services:
- The main distribution server: linuxsoft.cern.ch
- The installation infrastructure servers: aims.cern.ch
- The RPM build service: koji.cern.ch
Each service is composed by test and prod virtual machines configured via Puppet.
@@ -20,14 +23,21 @@ In our case the destination of the logs is [OpenSearch](https://opensearch.org/)
I recommend you read the [Fluentbit documentation](https://docs.fluentbit.io/manual), but in summary, we define which logs are we looking for, using the input configuration. Then we can modify them using the filters and send them to Opensearch using the output configuration.
We are using the `http` output plugin to send the logs to monit-logs.cern.ch. The MONIT team generated an http_password that can be found here: `tbag show --hg lsb monit_logs_tenant_lsb_password`.
The [fluentbit module](https://gitlab.cern.ch/ai/it-puppet-module-fluentbit) is maintained by MONIT and contains the fluentbit installation and all the different inputs, parsers, filters and outputs that can be used.
The [linux-monitoring module](https://gitlab.cern.ch/ai/it-puppet-module-linux_monitoring) is common structure to:
- Define the fluent-bit configuration constants.
- Instantiate a fluent-bit service with the hostgroup name.
- Create the required configuration files and the service instance.
- Enable the debug in `/var/log/messages` using [stdout filter](https://docs.fluentbit.io/manual/pipeline/filters/standard-output).
- Define a way to receive more than one input, filters and outputs and handle its properties.
This module uses the fluentbit module.
All the fluentbit configuration needed in each hostgroup will be made by calling `linux-monitoring` module.
@@ -37,6 +47,9 @@ One of mandatory fields is the `agent_name` that is used to create the fluentbit
The other mandatory fields are `input_plugins`, `output_plugins` and `filters`.
So, let's take a look at each main service and understand which logs are we interested in and how this is being processed by Fluentbit.
- [LXSOFT](./lxsoft.md)
- [AIMS](./aims.md)
- [KOJI](./lsb.md)
\ No newline at end of file
Loading