Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge Data Store

Configure logging

  • Last UpdatedSep 25, 2025
  • 4 minute read

Use the logging configuration to collect information about how Edge Data Store (EDS (Edge Data Store)) and its components are performing. Set the severity level for the messages to capture, anywhere from critical errors only to debugging messages for troubleshooting.

EDS (Edge Data Store) writes daily log messages to flat text files in the following locations:

  • Windows: %ProgramData%\OSIsoft\EdgeDataStore\Logs

  • Linux: /usr/share/OSIsoft/EdgeDataStore/Logs

Each message in the log displays the message severity level, timestamp, and the message itself.

Configure logging

To change the message logging behavior:

  1. Using any text editor, open the log configuration file that you want.

  2. Change the values as needed.

  3. Use any tool capable of making HTTP (Hypertext Transfer Protocol) requests to execute a POST command with the contents of that file to the respective endpoint.

    Definition: The POST method is used to create new resources.

    Note: Replace <ComponentId> with the ComponentId of the adapter instance or Storage component, for example OpcUa1.

    Example using cURL (Client for URL) or EdgeCmd utility (run this command from the same directory where the file is located):

    curl -d "@componentId_Logging.json" -H "Content-Type: application/json" -X PUT http://localhost:5590/api/v1/configuration/<ComponentId>/Logging

    edgecmd edit logging -cid <componentID> -loglevel <LogLevel>

The component endpoints are the following:

  • Edge Data Store: http://localhost:5590/api/v1/configuration/System/Logging

  • Storage: http://localhost:5590/api/v1/configuration/Storage/Logging

  • AVEVA Adapter for OPC UA: http://localhost:5590/api/v1/configuration/OpcUa1/Logging

  • AVEVA Adapter for Modbus TCP: http://localhost:5590/api/v1/configuration/Modbus1/Logging

Logging schema

The full schema definition for the logging configuration is in the component specific logging file:

  • Edge Data Store: System_Logging.json

  • Storage: Storage_Logging.json

  • AVEVA Adapter for OPC UA: OpcUa1_Logging.json

  • AVEVA Adapter for Modbus TCP: Modbus1_Logging.json

If you have more than one adapter of the same kind configured, the default file name incrementally changed, for example, OpcUa2_Logging.json.

The component specific logging files are located in the following folders:

  • Windows: %ProgramFlies%\OSIsoft\EdgeDataStore\Schemas

  • Linux: /usr/share/OSIsoft/EdgeDataStore/Schemas

Parameters for logging

The following parameters are available for configuring logging.

Parameter

Required

Type

Nullable

Description

logFileCountLimit

Optional

integer

Yes

The maximum number of log files that the service will create for the component. It must be a positive integer.

Minimum value: 1

Maximum value: 2147483647

Default value: 31

logFileSizeLimitBytes

Optional

integer

Yes

The maximum size in bytes of log files that the service will create for the component. It must be a positive integer.

Minimum value: 1000

Maximum value: 9223372036854775807

Default value: 34636833

logLevel

Optional

reference

No

The logLevel sets the minimum severity for messages to be included in the logs.

Messages with a severity below the level set are not included.

The log levels in their increasing order of severity are as follows:

Verbose - Captures all messages: Verbose, Debug, Information, Warning and Error

Debug - Captures most messages: Debug, Information, Warning and Error

Information - Captures most messages: Information, Warning and Error

Warning - Captures only Warning and Error messages

Error - Captures Error messages only

Default: Information

For detailed information about the log levels, see Log levels

sdsLogLevel

Optional

reference

No

The sdsLogLevel sets the minimum severity for messages written by SDS to be included in the logs.

Messages with a severity below the level set are not included.

The log levels in their increasing order of severity are as follows:

Verbose - Captures all messages: Verbose, Debug, Information, Warning and Error

Debug - Captures most messages: Debug, Information, Warning and Error

Information - Captures most messages: Information, Warning and Error

Warning - Captures only Warning and Error messages

Error - Captures Error messages only

Default: Warning

Log levels

The logLevel sets the minimum severity for messages to be included in the logs. Messages with a severity below the level set are not included. The log levels in their increasing order of severity are as follows: Trace, Debug, Information, Warning, Error, Critical.

The following table has general guidelines for setting the log level.

Level

Description

Trace

Logs that contain the most detailed messages. These messages may contain sensitive application data like actual received values and should not be enabled in a production environment.

Debug

Logs that can be used to troubleshoot data flow issues by recording metrics and detailed flow-related information.

Information

Logs that track the general flow of the application. Any non-repetitive general information (like version information relating to the software at startup, what external services are being used, data source connection string, number of measurements, egress URL (Uniform Resource Locator), change of state "Starting", "Stopping", or configuration) can be useful for diagnosing potential application errors.

Warning

Logs that highlight an abnormal or unexpected event in the application flow, but does not otherwise cause the application execution to stop. Warning messages can indicate a data source state that is not configured, that a communication with backup failover instance has been lost, an insecure communication channel in use, or any other event that could require attention, but that does not impact data flow.

Error

Logs that highlight when the current flow of execution is stopped due to a failure. These should indicate a failure in the current activity, not an application-wide failure. This can indicate an invalid configuration, unavailable external endpoint, internal flow error, and so on.

Critical

Logs that describe an unrecoverable application, system crash, or a catastrophic failure that requires immediate attention. This can indicate application wide failures like beta timeout expired, unable to start self-hosted endpoint, unable to access vital resource (for example, Data Protection key file), and so on.

Example logging configuration

By default, logging captures Information, Warning, Error, and Critical messages in the message logs. The following logging configuration is the installation default for a component:

[

{

"LogLevel": "Information",

"LogFileSizeLimitBytes": 34636833,

"LogFileCountLimit": 31

}

]

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in