Skip to content

Instantly share code, notes, and snippets.

@Typiqally
Created December 16, 2024 12:42
Show Gist options
  • Save Typiqally/799942d76b9fb1993e26370099487441 to your computer and use it in GitHub Desktop.
Save Typiqally/799942d76b9fb1993e26370099487441 to your computer and use it in GitHub Desktop.
A Regex for the default Loguru logs, can be used in services such as Promtail
(?P<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3})\s*\|\s*(?P<level>\w+)\s*\|\s*(?P<service>[\w\.]+):\w+:\d+ - .*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment