SYSTEM EVENT LOGGING

PLAN-R logs all system events to support analysis of user and system administrator actions and to identify errors that occur during operation. By default, event information is written in JSON format to the standard output of the microservice containers. Additional information may be included in the log depending on the event type.

For the complete list of system events, see the System Event List table.

The logging subsystem is configured using environment variables.

Information security events can also be forwarded to a separate logging server.

Extended information, such as the values of modified fields or data, can be added to event logs. Use this feature with caution, as it significantly increases the volume of logged information. It is recommended only for application debugging.

# Include additional information in event logs. Default: false.
LOGS_EXTEND=true

Information Security Events

The system can redirect information security events to a separate stream for forwarding to a dedicated log collection server. Information security events include command logs related to user management, user roles, system access, and Active Directory integration.

To forward information security events to a separate server, configure the following environment variables:

# Enable a separate stream for information security logs.
LOGS_SECURITY_SPLIT=true

# Specify the log collection server address.
LOGS_SECURITY_SERVER_ADDRESS=your_log_srv.domain.org

# Optionally specify the log collection server port. Default: 514.
LOGS_SECURITY_SERVER_PORT=5141

# Optionally specify the network protocol for log transmission. Default: UDP.
LOGS_SECURITY_SERVER_PROTOCOL=tcp

# When using TCP, enable automatic reconnection to the logging server if needed. Default: false.
LOGS_SECURITY_SERVER_TCP_RECONNECT=true

# Include vendor information in information security logs if needed. Default: false.
LOGS_SECURITY_ADD_DEVICE_INFO=true

# Enable security log output in CEF format if needed. Default: false.
LOGS_SECURITY_CEF_ENABLED=true

JSON Format

Table 1. JSON Field Descriptions

Field Description Format Required
timeTime when the event occurred.timestampYes
trace_idUnique identifier of the request execution. Can be used to trace all commands involved in processing the request.UUID v4Yes
command_nameEvent identifier.stringYes
command_descriptionHuman-readable event description.stringNo
is_infosecIndicates whether the event belongs to the information security event group.booleanNo
device_vendorApplication vendor.stringNo
device_productApplication name.stringNo
device_versionApplication version.stringNo
client_ipIP address of the client that sent the request.stringYes
user_idUnique identifier of the user on whose behalf the request is executed.UUID v4No
user_loginLogin of the user on whose behalf the request is executed.stringNo
space_idUnique identifier of the space in which the request was executed.UUID v4Yes
space_nameName of the space in which the request was executed.stringYes
target_space_idUnique identifier of the space targeted by the request, that is, the space in which data was modified.UUID v4No
target_space_nameName of the space targeted by the request.stringNo
eps_idUnique identifier of the Enterprise Project Structure (EPS) node targeted by the request.UUID v4No
eps_nameName of the EPS node targeted by the request.stringNo
eps_typeType of EPS node targeted by the request.
One of: space | facility | schedule | project | version
stringNo
auth_strategyType of provider used to authenticate the user request.
One of: activedirectory | openid | kerberos | saml | local | apikey | standalone
stringNo
target_user_idUnique identifier of the user targeted by the request. For example, the identifier of a user being created or a user whose settings were modified by the request.UUID v4No
target_user_loginLogin of the user targeted by the request.stringNo
role_idUnique identifier of the user role targeted by the request.UUID v4No
role_nameName of the user role targeted by the request.stringNo
target_role_idUnique identifier of the user role assigned to the EPS node when access permissions are changed.UUID v4No
target_role_nameName of the user role assigned to the EPS node when access permissions are changed.stringNo
target_subject_idUnique identifier of the object targeted by the request. For example, the identifier of an Active Directory connection.UUID v4No
target_subject_nameName of the object targeted by the request.stringNo
target_subject_stateStatus of the object targeted by the request.stringNo
target_subject_typeType of the object targeted by the request.stringNo
updated_fieldsList of fields modified by the request.stringNo
successIndicates whether the operation succeeded. For example, the result of user authentication in the system.booleanNo

Example

{ "time": 1749112947148, "trace_id": "42195a9e-17c3-4e2d-9868-ba7f7c253123", "command_name": "auth.local", "command_description": "Local user authentication", "is_infosec": true, "client_ip": "148.93.143.195", "user_id": "3ce9d1d6-b169-498f-8d28-33aced2353a0", "user_login": "ivanov@org.ru", "success": true, "container_name": "planr_ru-main-1", "request_source": "main" }

CEF Format

In addition to JSON, logs can be output in CEF format according to the standard defined in Implementing ArcSight Common Event Format (CEF) - Version 26.

To output information security events in CEF format, configure the following environment variables:

# Enable security log output in CEF format if needed. Default: false.
LOGS_SECURITY_CEF_ENABLED=true

# Set the date format for security logs in CEF format if needed. Default: MMM DD YYYY HH:mm:ss.SSS zzz.
LOGS_SECURITY_CEF_DATE_FORMAT=MMM DD YYYY HH:mm:ss.SSS z

Table 2. CEF Custom Field Descriptions

Field Description Format Required
DPPMPlanRTraceIdUnique identifier of the request execution. Can be used to trace all commands involved in processing the request.UUID v4Yes
DPPMPlanRSpaceIdUnique identifier of the space in which the request was executed.UUID v4Yes
DPPMPlanRSpaceNameName of the space in which the request was executed.stringYes
DPPMPlanRTargetSpaceIdUnique identifier of the space targeted by the request, that is, the space in which data was modified.UUID v4No
DPPMPlanRTargetSpaceNameName of the space targeted by the request.stringNo
DPPMPlanREpsIdUnique identifier of the Enterprise Project Structure (EPS) node targeted by the request.UUID v4No
DPPMPlanREpsNameName of the EPS node targeted by the request.stringNo
DPPMPlanREpsTypeType of EPS node targeted by the request.
One of: space | facility | schedule | project | version
stringNo
DPPMPlanRAuthStrategyType of provider used to authenticate the user request.
One of: activedirectory | openid | kerberos | saml | local | apikey | standalone
stringNo
DPPMPlanRUserIdUnique identifier of the user targeted by the request. For example, the identifier of a user being created or a user whose settings were modified by the request.UUID v4No
DPPMPlanRUserLoginLogin of the user targeted by the request.stringNo
DPPMPlanRRoleIdUnique identifier of the user role targeted by the request.UUID v4No
DPPMPlanRRoleNameName of the user role targeted by the request.stringNo
DPPMPlanRTargetRoleIdUnique identifier of the user role assigned to the EPS node when access permissions are changed.UUID v4No
DPPMPlanRTargetRoleNameName of the user role assigned to the EPS node when access permissions are changed.stringNo
DPPMPlanRTargetSubjectIdUnique identifier of the object targeted by the request. For example, the identifier of an Active Directory connection.UUID v4No
DPPMPlanRTargetSubjectNameName of the object targeted by the request.stringNo
DPPMPlanRTargetSubjectStateStatus of the object targeted by the request.stringNo
DPPMPlanRTargetSubjectTypeType of the object targeted by the request.stringNo
DPPMPlanRUpdatedFieldsList of fields modified by the request.stringNo
DPPMPlanRSuccessIndicates whether the operation succeeded. For example, the result of user authentication in the system.booleanNo

Example

Sep 19 08:26:10 host CEF:0|dppm|planr|602.0|auth.openid|Authentication using OpenID Connect (OIDC)|Low|src=10.0.0.1 suid=d1c3d009-4937-41b4-83af-ca6d3568eef6 suser=iv_ivn@org.com DPPMPlanRTraceId=36794d27-ff14-4502-a6f7-369e3417d6b8 DPPMPlanRSpaceId=7943063b-d137-4ba1-bedf-3166e35444ff DPPMPlanRSpaceName=My Organization DPPMPlanRSuccess=true

Logs are collected and processed by the FluentBit log collector and then stored in Grafana Loki. The distribution package also includes Grafana for viewing and analyzing logs.

register image

Use FluentBit to transform, filter, or forward events to external systems.


608.0-5d1f26c7