structured-logging Questions

2

I'm using the python logging module, along with python-json-logger and I would like to add a few keys: { "app_name": "myapp", "env": "prod" } To all of my logs automatically without doing the ...
Joijoice asked 1/2, 2019 at 1:29

0

We send logs from a variety of services running in a Kubernetes cluster to Elasticsearch via Filebeat. Some of these services we develop ourselves, others are third-party. We use dynamic mapping in...
Erigena asked 20/7, 2021 at 13:53

3

Solved

I recently read about structured logging (here). The idea seems to be to log not by appending simple strings as a line to a logfile, but instead JSON objects. This makes it possible to analyze the ...
Reifel asked 9/1, 2018 at 14:46

6

Anyone knows how structured logging is usually implemented with SLF4J? Is there any open source already out there handling this?
Ichthyic asked 25/5, 2016 at 7:36

1

Solved

I can do this in .net core _logger.LogInformation("Token validated {clientId}", "MyId"); And then logging libraries like NLog will know that there is a property called clientId with the value My...
Vellicate asked 28/10, 2019 at 9:20

2

Solved

Until today we have used NLog version 4.4.12 (without structured logging). However we were using https://www.nuget.org/packages/NLog.StructuredLogging.Json/ for structured logging. The nice thing ...
Mew asked 18/6, 2019 at 8:44
1

© 2022 - 2024 — McMap. All rights reserved.