Skip to content

Instantly share code, notes, and snippets.

@hUwUtao
Created June 13, 2025 14:26
Show Gist options
  • Save hUwUtao/5ab49578aa3e322e7adaed952849a2f5 to your computer and use it in GitHub Desktop.
Save hUwUtao/5ab49578aa3e322e7adaed952849a2f5 to your computer and use it in GitHub Desktop.
pihole dnsmasq log loki parsed
{job="dnsmasq"} | regexp `(?P<syslog_date>[A-Z][a-z]{2} \d{2} \d{2}:\d{2}:\d{2}) dnsmasq\[(?P<pid>\d+)\]: (?P<state>[^\s\[]*)(\[(?P<qtype>[A-Z]*)\])? (?P<domain>[^\s]*) (from (?P<client>.*))?(is (?P<destination>[^<]*))?`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment