AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
24.61k stars 1.78k forks source link

export to loki #6077

Open 20has opened 1 year ago

20has commented 1 year ago

Prerequisites

The problem

I want to be able to export querylog logs coming to my instance to loki or a syslog server.

5506

Proposed solution

I tried to search on the internet and didn't find anything.

Could you please add this feature on next release that we can use to export querylog logs coming to my instance to loki or a syslog server?

Thank you.

Regards.

Alternatives considered and additional information

No response

Taverius commented 1 month ago

In the meantime you could try nivg1992/adguard-loki-exporter.

There is a way to save the querylog to (json) file, so you could read that file with grafana/promtail or grafana/alloy but last I heard the format is not stable, or documented anywhere.

I doubt the information can be satisfactorily shoved into the limited OG syslog format, but exporting to OpenTelemetry or other more modern format might be doable.