Skip to content

Instantly share code, notes, and snippets.

@mmontagna
Forked from okhwaja/loggly-format.conf
Created November 18, 2016 00:11
Show Gist options
  • Save mmontagna/e3995b733241615c09289740a43d2b7f to your computer and use it in GitHub Desktop.
Save mmontagna/e3995b733241615c09289740a43d2b7f to your computer and use it in GitHub Desktop.
Loggly syslog tag regex for docker containers
$template LogglyFormat,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [<token>@<port> tag=\"%syslogtag:R,ERE,1,ZERO,0:docker\/([^[]+)\[--end%\"] %msg%\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment