Skip to content
Documentation
Updated 6 minutes to read
Markdown

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

In the Log API's Scalar reference, POST /LogAPI/api/LogEvent, Test Request, paste an order's Log Event, Send and get 200 OK, then search the Log View Contoso: Orders on the order number and open the Details of the event on Portal-OrderReceived-API, Endpoint Type REST API, animated walkthrough (7.12)
Animated walkthrough: in Scalar, open POST /LogAPI/api/LogEvent, click Test Request, paste a Log Event, and Send: the Log API answers 200 OK with the EventId. Then search a Log View on the order number and open the event's Details.

You want to… Go to
Check its application pool account and SQL Server rights Accounts and Rights at a Glance
Send Log Events from your own code Log using REST, Asynchronous Logging, and the Log Event data contract
Require a token from every sender Protect the Log API with OAuth 2.0 and Entra ID
Know what happens after an event is accepted What Happens After the Log API Accepts an Event
Open the ports for the senders and SQL Server Log API firewall
Solve a problem Log API troubleshooting
Change its port or account, or update it Update Log API
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.

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

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 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

Section titled “ What Happens After the Log API Accepts an Event”

The Log API stores the event as unprocessed, so an event isn't searchable the moment you get 200 OK: the Logging Service processes it first, usually within seconds and at most about a minute. The Logging Service 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:

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.

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

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: Nodinite.LogApiCore with Download OpenAPI Document, Client Libraries with Generate SDK, and the Information operations (7.12)
Scalar groups the Log API operations into Information and LogEvent, and lets you download the OpenAPI document.

Swagger with the LogEvent group expanded: four POST operations for Log Events, batches and validation, and three GET operations for Endpoint Types, Endpoint Direction and Event Direction (7.12)
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.

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

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...