Enrich the Log Metadata for Agents
You can utilize appenders and targets in the application log configuration files to record the MDC keys. You must define these attributes in the application log files to append the log metadata.
- Configure the Java Application Loggers
- Configure the .Net Application Loggers
- Configure the Node.js Application Loggers
The configuration differs based on whether you use structured or unstructured logs. Unstructured logs are large text files made of human-readable strings. Structured logs use objects instead of strings. These objects can include variables, data structures, methods, and functions. For instance, a log object might detail an application or platform. The structured logs are suitable for machine reading.