Search code examples
ubuntuloggingazure-devopsgrafanagrafana-loki

Is it possible to send logs from a ubuntu to Loki?


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?


Solution

  • 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.