Skip to content
Documentation
Updated 12 minutes to read
Markdown

The Nodinite Log API is a web application that receives Log Events from integration platforms and writes them to SQL Server databases. Before installing, understand how the components work together and what infrastructure you need.

  • IIS hosting - The Log API runs as its own web site in Internet Information Services (IIS) and needs the IIS features and the .NET Hosting Bundle for Nodinite v7
  • MSDTC coordination - when a Log Database is on another SQL Server instance, each batch of Log Events becomes a distributed transaction coordinated by the Microsoft Distributed Transaction Coordinator (DTC)
  • Service account security - Unlike the Web Client, the Log API uses Anonymous Authentication to accept Log Events from external systems, but it accesses SQL Server as a Windows service account with specific SQL permissions
  • Firewall planning - Log Events arrive over HTTPS from integration platforms, and the Log API queries SQL Server using Windows authentication and DTC
  • High availability support - The Log API supports Always On Availability Groups (AOAG) and linked servers for enterprise deployments

The Log API is a web application hosted in IIS. You install and maintain it as part of the Nodinite Core Services package; its port, service account, and TLS certificate are set in the Nodinite Portal.

graph LR subgraph "Integration Platform" roLogSink[fal:fa-bolt Integration Flow Application] end subgraph "App Server" roLogSink2[fal:fa-bolt Custom Logging Solution ] end subgraph "Web Server" roLogAPI(fal:fa-cloud-arrow-down LogAPI) end subgraph "SQL Server" roSQL1(fal:fa-database Configuration Database) --- roSQL2(fal:fa-database Active Log Database) roLogSink --> | HTTPS | roLogAPI roLogAPI --> | SQL, DTC, DNS, RPC | roSQL1 roLogSink2 --> | HTTPS | roLogAPI end

Diagram: Log API architecture showing data flow from integration platforms to web server and SQL databases. Integration systems send Log Events over HTTPS to the Log API, which writes to the Configuration and Log Databases using SQL, DTC, DNS, and RPC protocols.

The Log API runs as its IIS application pool identity, set in the Portal (Core platform services, with defaults from Service Account Defaults). Senders don't need Windows credentials: the site uses Anonymous Authentication by default, and OAuth 2.0 when you enable it. Every write to SQL Server runs as the pool identity.

Right On what Why Without it
Logon as a Service The Core Services Server (Windows rights) IIS grants it to the pool identity when the pool starts; a Group Policy that defines the right must list the identity (details) The Log API doesn't start
Membership in IIS_IUSRS The Core Services Server It gives the pool identity Log on as a batch job, which IIS starts the worker process with, and Impersonate a client after authentication, without local administrator rights The Log API doesn't start
Load User Profile True, and write access to its own appsettings.json The application pool and the installation folder The secret-encryption certificate is in the identity's CurrentUser store; the Log API rewrites its settings with protected values Start-up or settings protection fails
Read %windows%\system32\inetsrv\config It reads redirection.config Cannot read configuration file due to insufficient permissions (fix)
EXECUTE The Configuration Database (Nodinite Databases) It connects only to the Configuration Database and writes each batch through a stored procedure Every batch is refused
db_datawriter Every Log Database, archives included The procedure inserts each Log Event into every Log Database whose date range covers the event's LogDateTime Every batch is refused
Membership in LogServiceUsers The System Parameter, unless the identity is sysadmin The Logging Service grants access on each new Log Database to that list Logging stops at the next split
Inbound on the Log API port The Core Services Server, from every Log Event sender (firewall) Log Agents, the Pickup Service, and your code post Log Events Senders can't log
An app registration and audience in your OpenID Connect provider, such as Microsoft Entra ID OAuth mode only (Protect the Log API with OAuth 2.0) The Log API validates each token Senders get 401 Unauthorized

SQL Server Sysadmin Requirements has the full rights matrix.

After you change its account or rights, open the Log API's Scalar page. POST /LogAPI/api/LogEvent/Validate checks a Log Event without storing it (Status 0); POST /LogAPI/api/LogEvent stores it and returns its EventId. The event then shows in a Log View.

Scalar on the Log API: validate a Log Event with Status 0, post it and get its EventId, then find it in the Log View Contoso: Orders
The Log API identity can write to the Log Databases when the posted event shows in the Log View.

When the Core Services Run as Different Accounts

Section titled “When the Core Services Run as Different Accounts”

When the Log API has its own account, give it its own login on every instance and Always On node with the Configuration Database or Log Databases, the rights above, and an entry in LogServiceUsers. Without that entry, the Log API keeps logging until the next split and then stops, because it has no access to the new Log Database. The Core Services Overview compares the rights of all services.

The Log API is an IIS-hosted web application. In Nodinite v7 it runs on .NET 10 and ASP.NET Core, as its own IIS web site on the port you set in the Portal.

  • IIS Windows Features for Nodinite 7 - see IIS Windows Features
  • .NET 10 Hosting Bundle - includes the ASP.NET Core Module V2 that hosts the Log API in IIS
  • Anonymous Authentication - the Log API accepts Log Events without Windows credentials; the CLI sets this for you

IIS Windows Features - Complete feature list and installation guide
IIS Authentication settings - The supported authentication settings, if someone has changed them in IIS

Microsoft Distributed Transaction Coordinator (DTC)

Section titled “ Microsoft Distributed Transaction Coordinator (DTC)”

The Log API writes each batch of Log Events in one transaction. When a Log Database is on another SQL Server instance than the Configuration Database, the write goes through a Linked Server and SQL Server promotes it to a distributed transaction, which needs the Microsoft Distributed Transaction Coordinator (DTC) on the SQL Servers involved. With every Log Database on one instance, no distributed transaction starts. See Configuration Database DTC and MSDTC; see also the Nodinite Prerequisites.

What Windows rights does the Log API require?

Section titled “ What Windows rights does the Log API require?”

The Nodinite Log API runs in an IIS application pool with a named service account. Unlike the Web Client and Web API, the Log API uses Anonymous Authentication (not Windows Authentication) because it accepts Log Events from various systems and applications. You choose the account in the Portal, under Step 4: Servers › Core platform services (or Same account for all Services, with defaults from Step 2: Auth › Service Account Defaults); the CLI configures the application pool with it.

  • The service account needs the Log on as a service right; IIS grants it when the application pool starts (IIS application pool identities)
  • Make the service account a member of the IIS_IUSRS group; it doesn't need to be a local administrator, nor the Allow log on locally right
  • The service account must have Read rights on the %windows%\system32\inetsrv\config folder (for redirection.config access)
  • Load User Profile True on the application pool, and write access to its own appsettings.json
  • A gMSA works as well, and needs no password

For the full rationale and fallback model when sysadmin is denied by policy, see SQL Server Sysadmin Requirements.

The Log API application pool runs with the named Windows service account identity, and all calls to SQL Server are made as this identity. This gives secure, authenticated database access while external systems send Log Events without Windows credentials. The Log API connects to the Configuration Database with the connection string in its appsettings.json, and finds the Log Databases through the list of Log Databases stored there.

IIS_IUSRS Group Membership - How to configure service accounts for least-privilege deployments

What SQL Rights does the Log API require?

Section titled “ What SQL Rights does the Log API require?”

The Log API connects only to the Configuration Database, as the service account configured for the Log API. A stored procedure inserts each Log Event into the Events, MessageDataParts, and MessageContext tables of every Log Database whose date range covers the event, so the account needs these rights:

The Log API needs nothing in master.

Database Permission Description Microsoft Docs Link
Configuration Database EXECUTE Runs the Nodinite stored procedures (see below) GRANT
NodiniteLog_* db_datawriter Grants write access to all tables and views db_datawriter

The Log API only inserts: it needs no db_datareader, no db_ddladmin (no DDL), and no db_owner or sysadmin (only the Logging Service shrinks). A Log Database has no stored procedures, so EXECUTE there grants nothing.

Grant Execute rights on the stored procedures of the Configuration Database for the account used by the Log API:

GRANT EXECUTE TO [Domain\user]

Replace [Domain\user] with the Windows account being used for the Log API.

What Firewall settings are required for the Log API

Section titled “ What Firewall settings are required for the Log API”

The Log API accepts Log Events from systems outside Nodinite (integration platforms, custom applications, and the Pickup Service), so it is the Core Service whose port is most often opened to other networks. It writes to SQL Server and uses the domain controller for DNS and Kerberos; with OAuth 2.0 turned on, it also validates tokens from Microsoft Entra ID. The diagram shows each host, with the port on the arrow, drawn from the side that opens the connection.

graph LR subgraph "Log Event senders" roSender["fa:fa-bolt Integration platforms, applications, Pickup Service"] end subgraph "Nodinite Core Services Server" roLogAPI["fa:fa-cloud-arrow-down Log API - IIS"] end subgraph "SQL Server" roConfig["fa:fa-database Configuration Database"] roLogDB["fa:fa-database Active Log Database"] end subgraph "Domain Controller" roDC["fa:fa-server DNS, Kerberos, LDAP"] end subgraph "Microsoft Entra ID - OAuth only" roEntra["fab:fa-microsoft login.microsoftonline.com"] end roSender -->|"HTTPS, Log API port"| roLogAPI roLogAPI -->|"TCP 1433, MSDTC 135 + RPC"| roConfig roLogAPI -->|"TCP 1433, MSDTC 135 + RPC"| roLogDB roLogAPI -->|"53, 88, 389"| roDC roSender -.->|"HTTPS 443, get token"| roEntra roLogAPI -.->|"HTTPS 443, signing keys"| roEntra

Diagram: senders post Log Events to the Log API on its Portal port; the Log API writes to SQL Server and uses the domain controller. Dotted arrows apply only when OAuth 2.0 is turned on for the Log API.

Between the Log Event senders and the Log API

Section titled “Between the Log Event senders and the Log API”
Direction Source Destination Protocol Port(s) Purpose Notes
Inbound Log Event sender (integration platform, application, Pickup Service) Core Services Server (Log API) TCP (HTTPS) Log API port Post Log Events over REST Set in the Portal; allow only the sender networks you need. See the Hardening guide
Outbound Log Event sender Microsoft Entra ID (login.microsoftonline.com) TCP (HTTPS) 443 Get a bearer token Only when Enable Authentication is set for the Log API; see Protect the Log API with OAuth 2.0 and Entra ID

The SQL Server, MSDTC, and domain controller ports are shared by all Nodinite components; their full details live in SQL Server Firewall Configuration.

Direction Source Destination Protocol Port(s) Purpose Notes
Outbound Core Services Server (Log API) SQL Server (Configuration and Log Databases) TCP 1433 Write Log Events, read settings Default instance port; named instances and changed ports: Core Services to SQL Server
Outbound Core Services Server (Log API) SQL Server UDP 1434 SQL Server Browser Only for a named instance without a port in the connection string; see SQL Server Browser Service
Both Core Services Server (Log API) SQL Server TCP 135 + dynamic RPC range MSDTC distributed transactions Configure MSDTC on both servers; see Core Services to SQL Server

Between the Log API and the domain controller and Microsoft Entra ID

Section titled “Between the Log API and the domain controller and Microsoft Entra ID”
Direction Source Destination Protocol Port(s) Purpose Notes
Outbound Core Services Server (Log API) Domain Controller (DNS server) TCP/UDP 53 DNS name resolution Resolve the SQL Server names; hosts-file entries are a fallback
Outbound Core Services Server (Log API) Domain Controller TCP/UDP 88, 389 Kerberos and LDAP for the service account's SQL Server sign-in See Domain Controller ports
Outbound Core Services Server (Log API) Microsoft Entra ID (login.microsoftonline.com) TCP (HTTPS) 443 Read the OpenID configuration and token signing keys Only when Enable Authentication is set; through the proxy set in Step 3: Infrastructure if you use one
  • No fixed default port: the Log API port is whatever you set in the Portal; senders must use the full base URL, including the port. See Find the base URL.
  • Senders on other networks: open the Log API port only from the sender networks, and use HTTPS with a certificate the senders trust.
  • Versions: Nodinite v7 hosts the Log API on its own Portal port; update sender URLs and firewall rules when you move from an earlier version.
  • DNS (53): senders must resolve the Log API host name, and the Log API must resolve the SQL Server names.

Additional solutions to common problems and the Nodinite Log API FAQ exist in the Troubleshooting user guide.

Yes. Set the TLS host name and certificate in the Portal under Step 4: Servers › Core host Configuration, so the Log API is reachable over HTTPS, and review the Hardening guide. To also require an OAuth 2.0 bearer token on every Log Event, check Enable Authentication in Step 2: Auth › Log API; see Protect the Log API with OAuth 2.0 and Entra ID.

Install Log API
IIS Windows Features
MSDTC

Core Services Package
Log API
Configuration Database
Log Databases
Hardening
SqlServer
LogServiceUsers
LogAccessRoles
IIS Authentication settings
SQL Server Firewall
Troubleshooting
Uninstall Log API
Update 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...