Browse Source

handle other tags dynamically

master
Markus Bergholz 2 years ago
parent
commit
892f022dbb
  1. 2
      logging/fluent-bit-loki-middleware.py

2
logging/fluent-bit-loki-middleware.py

@ -11,7 +11,7 @@ def syslog(body=None):
if item.get("container_name"):
tag = item.get("container_name").split(".")[0]
else:
tag = "ufw"
tag = item.get("group")
message = item.get('log')
d = datetime.fromtimestamp(item.get('date'))
ts = d.isoformat('T') + "Z"

Loading…
Cancel
Save