Security logging format
| Attribute | Description |
|---|---|
timestamp |
e.g. 2023-07-25T06:55:52.372Z |
environment |
Environment where the application is hosted. Source: Environment variable NEXEED_GLOBAL_ENVIRONMENT_NAME |
system |
The name of the system, e.g. DEV, TEST, PROD, etc… Source: Environment variable NEXEED_GLOBAL_SYSTEM_NAME |
application |
Name of the application e.g. condition-monitoring-core. |
version |
Version of the application e.g. 3.0.1 |
instance |
The name or identifier of the instance. Source: Environment variable NEXEED_GLOBAL_APPLICATION_INSTANCE_ID |
thread |
Name of the thread e.g. http-nio-9095-exec-2 |
logger |
SECURITY |
loglevel |
WARN or INFO |
correlationId |
Unique id for one request. Used to collect all log messages of the same request. |
traceId |
Unique trace id for monitoring. If no value is available the attribute is not present. |
spanId |
Unique span id for monitoring. If no value is available the attribute is not present. |
tenantId |
Most of the log messages are related to a tenant. In other cases is this attribute empty. |
userId |
Id of the user that is sending the request. For log messages which are not caused by a request this attribute is empty. |
sourceIp |
IP address of the originator of the request. Probably multiple values separated by comma. If the log message is not caused by a request this attribute is empty. |
event |
Type of the event e.g. INPUT_VALIDATION_FAILED, TLS_DISABLED, X_UNEXPECTED_EXCEPTION, X_METHOD_NOT_ALLOWED |
message |
Text of the log message describing reason and context. |