Event Logging

NI-iDDS Instrument Node logs significant events to: /var/lib/ni-idds-inst-node/log/ni-idds-inst-node.log

Example event log:

2023-03-06 23:27:54 UTC: [SCRIPT] Starting Instrument Node.
2023-03-06 23:27:58 UTC: [INFO] Modules Detected: Mod1,Mod2,Mod3,Mod4
2023-03-06 23:27:59 UTC: [INFO] Initializing iDDS
2023-03-06 23:28:00 UTC: [INFO] Entering Getting Node Application Configuration State
2023-03-06 23:28:00 UTC: [INFO] Entering Configuring State
2023-03-06 23:28:00 UTC: [INFO] Supervisor config requested with /tmp/ni_node_config_9205_multi_table.xml
2023-03-06 23:28:02 UTC: [INFO] Entering Ready State

Event Severity Filters

All logged events are labeled with one of the following severity levels:

  • [CRITICAL]—Labels errors and exceptions
  • [INFO]—Labels state transitions and other aperiodic events
  • [DEBUG]—Labels periodic events. Use caution when enabling [DEBUG] labels because this level can bloat your event log when left on over time.
  • Figure 2. Event Severity Filters

    1378

    By default, NI-iDDS Instrument Node is configured to log events labeled [INFO] and above. To learn how to modify log_severity, refer to Startup Script Settings.

    Log Rotation

    Instrument Node uses logrotate to manage event logs. The service provides the following:

    • Rotates event logs over 10 kB
    • Maintains a history of five compressed files