BIENVENUE10valid for the first month only! on all offersView plans
Skip to content
← Knowledge base

Use managed Loki (log aggregation)

Push your logs to Loki with Promtail, basic LogQL queries and exploration in Grafana.

Use managed Loki

Loki aggregates your logs (like Prometheus, but for logs). The instance is pre-wired in Grafana.

1. Access

The Loki URL and auth token are in the panel. In Grafana, the Loki datasource is already configured.

2. Push logs (Promtail)

Deploy Promtail on the application side to collect and send logs:

clients:
  - url: "https://<host>/loki/api/v1/push"
    bearer_token: "<token>"

scrape_configs:
  - job_name: app
    static_configs:
      - targets: ["localhost"]
        labels:
          job: app
          __path__: /var/log/app/*.log

3. LogQL — common queries

{job="app"}                      # all logs of job app
{job="app"} |= "error"           # filter on "error"
rate({job="app"}[5m])            # lines / min
sum by (level) (rate({job="app"}[5m]))

4. Explore in Grafana

Open Explore → Loki, paste a LogQL query, then build a dashboard (log panels and derived metrics).

References

Related products

oneSubnet

French hosting provider in Paris. High-performance game and voice servers.

SERVICES

Resources

LEGAL

All systems operational