Offline logs to Loki, how?

Hi there!

I manage numerous appliances that keep local logs, these appliances are installed all over the world and shipping all the logs to a central place isn’t an option at the moment…

I have an application that can have an appliance send all its logs to a central place for offline analysis and I would like to put all of these into Loki so I can combine it with some metrics I collect from them.

So far, I haven’t found a way to do this, it seems promtail is meant to ship logs as they are generated instead of just ingesting logs that are already there. On top of that, the logs are shipped to a central place that has nothing to do with the appliance.

I would like to put all the logs into Loki and identify by serialnumber of the appliance, is it possible to do this?

Thanks!

1 Like

Hi Loki team,

I have a similar case in my env, and I require to import offline logs to Loki.

I tried to import the logs to the temporary path, and use Promtail to send them to Loki, but the timestamp doesn’t follow the date in the logs ( in my case is apache access logs), any way to adjust it?