ansible-nas/website/docs/applications/stacks/logging.md

30 lines
733 B
Markdown
Raw Normal View History

2023-07-19 22:44:20 +00:00
---
title: "Logging"
---
The logging stack sets up a fully functional application logging capture and search service based on [Loki](https://grafana.com/oss/loki/), viewable via Grafana.
To enable it, add the following to your `inventories/<your_inventory>/group_vars/nas.yml`:
2023-07-19 23:03:28 +00:00
```yaml
2023-07-19 22:44:20 +00:00
logging_stack_enabled: true
```
Which is equivalent to:
2023-07-19 23:03:28 +00:00
```yaml
2023-07-19 22:44:20 +00:00
minio_enabled: true
loki_enabled: true
promtail_enabled: true
grafana_enabled: true
```
Once set up, all container stdout logs will be captured and stored. You'll find the Loki data source available in Grafana.
Read more:
2023-07-19 23:03:28 +00:00
- [Grafana](../observability/grafana.md)
- [Loki](../system-tools/loki.md)
- [Minio](../system-tools/minio.md)
- [Promtail](../system-tools/promtail.md)