Home > database >  Is it possible to send logs from a ubuntu to Loki?
Is it possible to send logs from a ubuntu to Loki?

Time:07-05

We are using Azure DevOps to run various pipelines, and I would like to send these logs to a Loki instance. It is possible simply to send all STDOUT from an Ubuntu machine to Loki?

CodePudding user response:

No, but you can use the "Promtail" to do this.

See more info about the Promtail at the Loki documentation here.

Promtail is released with the Loki releases here.

CodePudding user response:

I found out that you can use the Azure DevOps REST API to download your pipeline logs. So we have just gone with writing a small kubernetes-cronjob that downloads the pipeline logs based on date filtering and writes them to the STD out of the container. The logs are then picked up by promtail and passed on to loki.

  • Related