- 5 minutes to read

Log API

The Nodinite Log API is the REST entry point for every Log Event that reaches Nodinite. Nodinite Log Agents use it, the Pickup Log Events Service Logging Agent uses it, and your own code can use it too, from any platform: Node.js, .NET, Java, Python, PowerShell, or anything that can post JSON over REST. The Log API stores the events in the Log Databases, where the Logging Service processes them and business users find them through role-based Log Views.

  • ✅ One REST endpoint for Log Events from all platforms
  • ✅ Single Log Events or batches, with a validate-only operation
  • ✅ Optional OAuth 2.0 protection, set in the Nodinite Portal
  • ✅ Built-in Scalar and Swagger API references

Understanding the Log API Architecture

graph LR subgraph "Senders" roAgents[fal:fa-box-archive Nodinite Log Agents] roPickup[fal:fa-truck-pickup Pickup Service] roCode[fal:fa-code Your own code] end subgraph "Core Services host" roLogAPI(fal:fa-cloud-arrow-down Log API) roLS(fal:fa-hard-drive Logging Service) end subgraph "SQL Server" roSQL1(fal:fa-database Configuration Database) roSQL2(fal:fa-database Active Log Database) end roAgents -->|Log Events| roLogAPI roPickup -->|Log Events| roLogAPI roCode -->|REST, JSON| roLogAPI roLogAPI -->|settings| roSQL1 roLogAPI -->|store unprocessed| roSQL2 roLS -->|process| roSQL2 style roLogAPI fill:#2678BD,color:#fff style roLS fill:#E47528,color:#fff style roSQL1 fill:#3F827B,color:#fff style roSQL2 fill:#3F827B,color:#fff

Senders post Log Events to the Log API (blue), which stores them in the active Log Database (green). The Logging Service (orange) then processes them.

Key Components

Component Role
Log API ASP.NET Core web application, hosted as its own IIS web site and port. Receives Log Events over REST and stores them. Part of the Core Services
Log Agents and the Pickup Service Send Log Events to the Log API base URL https://{host}:{port}/LogAPI/. They keep their events and retry while the Log API is unavailable
Configuration Database Holds the System Parameters the Log API reads
Log Databases Hold the stored Log Events and messages
Logging Service Processes what the Log API stores: Message Types, Search Fields, retention, and cleanup

Installation and Settings

The Log API is installed, updated, and removed with the Core Services; see Install Log API, Update Log API, and Uninstall Log API. You set its values in the Nodinite Portal, never by hand in IIS or settings files:

Setting Portal step
Port and service account Step 4: Servers › Core platform services
TLS host name and certificate Step 4: Servers › Core host Configuration
Enable Authentication and Audiences (OAuth 2.0) Step 2: Auth › Log API

By default the Log API accepts Log Events anonymously. To require a bearer token, follow Protect the Log API with OAuth 2.0 and Entra ID. Review the Prerequisites (SQL Server rights, firewall) before you install.

System Parameters Read by the Log API

System Parameter Purpose
SqlServer Which SQL Server, Linked Server, or Azure SQL hosts the Nodinite databases

The Log API reads only this one. The parameters that change what happens to your Log Events after they are stored are read by the Logging Service; see the next section. How to change a value: Manage System Parameters.

What Happens After the Log API Accepts an Event

The Log API stores the event as unprocessed. The Logging Service then determines the Message Type, extracts Search Fields, and applies retention; the full pipeline is in What happens after you log an event. These pages tell you what you can control:

Log from Your Own Code

To post Log Events from a script, service, or application, start with Log using REST. It shows how to find the base URL of your environment's Log API (for example https://nodinite.contoso.com:40002/LogAPI/), how to call a protected Log API, and gives samples in PowerShell, curl, C#, Python, and Node.js. For volume, or when your application must not depend on Nodinite being available, use Asynchronous Logging with the Pickup Service.

Tip

The Log API is for writing Log Events. To automate other tasks, such as maintaining the Repository Model or reading monitoring data, use the deterministic Web API. To ask natural-language questions about your integration landscape from an AI tool, use the MCP Endpoint.

The WCF endpoints of Nodinite v6 are not available in v7; see Log using WCF for what to use instead.

Scalar and Swagger Support

The Log API comes with two interactive API references at the root of its web site: Scalar at https://{host}:{port}/scalar and Swagger at https://{host}:{port}/swagger. Both list every operation and model, and let you send test requests. Scalar also generates code snippets for many languages. Swagger may be removed in a future version, so prefer Scalar.

Scalar start page for the Log API with client library options (7.10)
Scalar groups the Log API operations into Information and LogEvent, and lets you download the OpenAPI document.

Swagger listing the Log API operations (7.10)
Swagger lists the Log API operations: post a Log Event or a batch, validate them, and read the valid Endpoint Types, Endpoint Directions, and Event Directions.

Frequently Asked Questions

Find answers to common questions and troubleshooting tips in the Troubleshooting guide for the Nodinite Log API.

Note

Nodinite v6 is no longer supported. To move an existing v6 installation, follow Updating from v6 to v7.

Next Steps