Prerequisites for the Log Database
Section titled “Prerequisites for the Log Database”The Nodinite Log Databases hold the logged events, messages, and Monitoring Events of an environment. The Logging Service creates every one of them, the first one included, and the other Core Services reach them through Linked Servers from the Configuration Database, each as its own service identity. This page tells the person who maintains the installation what those identities need on the Log Databases, and what SQL Server, Windows, and the network must provide before the Logging Service first starts.
Understanding the Log Database Architecture
Section titled “Understanding the Log Database Architecture”Diagram: the Logging Service (orange) creates each Log Database and grants access on it; the other Core Services (blue) reach the Log Databases through the Linked Servers of the Configuration Database (teal), which pass their identity on.
Key Architectural Principles
Section titled “Key Architectural Principles”- Created by the Logging Service — The install package doesn't create a Log Database: the Logging Service creates the first one when it first starts, and the next ones when the online one reaches SizeToSplitDatabaseOn or DaysToSplitDatabaseOn
- Access granted per new database — On each new Log Database, the Logging Service grants the roles in LogAccessRoles to the accounts in LogServiceUsers
- Reached by name — The stored procedures of the Configuration Database reach a Log Database on the same instance by its three-part name, and one on another instance through a Linked Server; either way the query runs as the calling service's own login. The
localhostLinked Server is still required: the Logging Service tests it before it creates a Log Database - Tables only — A Log Database holds tables and no stored procedures, so
EXECUTEon it grants nothing - Scalable storage — Log Databases can span several SQL Server instances, and historical ones can move to another instance
Accounts and Rights at a Glance
Section titled “ Accounts and Rights at a Glance”| Right | On what | Why | Without it |
|---|---|---|---|
sysadmin, or dbcreator, diskadmin, and securityadmin, for the Logging Service identity |
Every SQL Server instance that gets Log Databases (Logging Service SQL rights) | It creates each Log Database and its files, and owns it; it then adds the LogServiceUsers logins as users in the new database | No first Log Database, and no split later; the logging pipeline stops |
db_ddladmin or db_owner for the Logging Service identity |
Only Log Databases it did not create (made by hand or moved in) | Index maintenance while DatabaseMaintenance is on; db_owner for shrink. On the Log Databases it created, it is the owner already |
Maintenance fails on those databases |
db_datareader and db_datawriter for the Web API, Log API, Monitoring Service, and MCP Endpoint identities |
Every Log Database (who needs what) | They read and write Log Events and Monitoring Events; the MCP Endpoint only reads | Log searches, logging, or monitoring history fail for that service |
| Membership in LogServiceUsers | The System Parameter, for each identity that is not sysadmin |
The Logging Service grants LogAccessRoles on each new Log Database to that list | The identity can't use the newest Log Database after the next split |
| A login for each service identity, created before the next split | Every instance with Log Databases, and every node of an Always On Availability Group | The queries run as the caller's own login; the Logging Service adds users only for logins that exist, and never creates a login; SQL logins are not replicated between nodes | Queries on that instance or node fail; a missing login gives a Critical Log Audit Failed to grant the role |
| Trusted for delegation and SPN values | The Core Services identities and the SQL Server instances, in Active Directory | Kerberos carries the identity over the Linked Server to a Log Database on another instance (Kerberos) | Those Linked Server calls arrive as an anonymous login and fail |
| A configured MSDTC | Every SQL Server involved, when a Log Database is on another instance than the Configuration Database | A write to a remote Log Database inside a transaction becomes a distributed transaction (DTC) | Log Events for that Log Database are refused |
| A backup share in AvailabilityGroupBackupPath, writable by the primary's SQL Server service account and readable by the secondaries' | Always On Availability Groups only | The Logging Service backs up each new Log Database there and restores it on the secondary replicas to join it to the group | The new Log Database stays on the primary only, outside the group, and isn't registered |
The Web Client is left out: it needs no SQL Server rights.

Where a maintainer sees which accounts get which roles on each new Log Database: LogServiceUsers and LogAccessRoles (shipped as db_datareader;db_datawriter;db_ddladmin).
When the Core Services Run as Different Accounts
Section titled “When the Core Services Run as Different Accounts”Each separate account needs its own login on every instance and Always On node with Log Databases, and an entry in LogServiceUsers unless it is sysadmin. The Logging Service grants access only on the Log Databases it creates from then on; for the Log Databases that already exist, grant the new account the roles in LogAccessRoles yourself, or ask your DBA to. The Core Services Overview compares the rights of all services.
When your policy doesn't allow the Logging Service to create databases, a DBA can create Log Databases manually.
SQL Server
Section titled “ SQL Server”Review Microsoft SQL Server for the supported versions and editions.
You can run SQL Server on Windows Servers implemented on physical machines, virtual machines, and in the cloud. The actual Windows version used must match the prerequisites for Microsoft SQL Server version being used.
You set the SQL Server type (standalone, Always On Availability Group, or Azure SQL Managed Instance) and the connection string in the Nodinite Portal, Step 3: Infrastructure. On an Always On Availability Group, see Always On Availability Groups and the AvailabilityGroupBackupPath System Parameter.
Microsoft Distributed Transaction Coordinator (DTC)
Section titled “ Microsoft Distributed Transaction Coordinator (DTC)”The Windows service Microsoft Distributed Transaction Coordinator (DTC) is needed when a Log Database is on another SQL Server instance than the Configuration Database: a write to that Log Database inside a transaction goes through a Linked Server, and SQL Server promotes it to a distributed transaction. With every Log Database on the Configuration Database's instance, no distributed transaction starts. The home of these facts is Configuration Database DTC; configure the service as described in MSDTC.
What Windows rights does the Log Database require?
Section titled “ What Windows rights does the Log Database require?”The Log Databases need no Windows rights of their own. What matters is that the identity of each Core Service survives the hop to SQL Server and on through the Linked Servers: when a service reads a Log Database on another instance, or a BizTalk tracking database, its own account runs that query. For Windows Integrated Security to carry that identity to another instance, configure Kerberos as follows.
Trusted for delegation
Section titled “ Trusted for delegation”Allow the Core Services identities to delegate to the SQL Server services, as described in Trusted for delegation.
Register SPN
Section titled “ Register SPN”When running Nodinite in a distributed environment, Kerberos requires all SQL Instances (both physical node names and cluster names) to have their Service Principal Names (SPNs) registered in Active Directory.
What SQL Rights does the Log Database require?
Section titled “ What SQL Rights does the Log Database require?”The Core Services reach the Log Databases through the Linked Servers of the Configuration Database, each as its own service identity. Each service's Prerequisites page is the home of its rights:
| Identity | Rights on each Log Database | Home |
|---|---|---|
| Logging Service | Owner (dbo) of every Log Database it creates, through sysadmin, or dbcreator, diskadmin, and securityadmin, on the instance; db_ddladmin or db_owner only on a Log Database it did not create |
SQL rights |
| Monitoring Service | db_datareader, db_datawriter |
SQL rights |
| Web API | db_datareader, db_datawriter |
SQL rights |
| Log API | db_datawriter (it only inserts) |
SQL rights |
| MCP Endpoint | db_datareader (it reads failed Log Events) |
Database access |
The shipped LogAccessRoles (db_datareader;db_datawriter;db_ddladmin) covers every service; db_ddladmin is not needed by any of them, so you may remove it from the list for least privileges.
Diagram: the Configuration Database reaches the Log Databases through Linked Servers for distributed queries.
When the Logging Service creates a new Log Database, it grants the database roles in the LogAccessRoles System Parameter to every account in LogServiceUsers. Creating databases needs elevated rights; see SQL Server Sysadmin Requirements, or create Log Databases manually when your policy doesn't allow them.
What Firewall settings are required for the Log Database?
Section titled “ What Firewall settings are required for the Log Database?”The Log Databases never open connections to the Nodinite Core Services. The Logging Service creates them, starting with the first one, and writes to them; the Log API writes Log Events to the active Log Database; the Configuration Database reads them through Linked Servers. Every server also needs a domain controller for DNS and Kerberos. The diagram shows each host, with the port on the arrow, drawn from the side that opens the connection.
Diagram: the Logging Service and the Log API connect to the Log Databases directly, the other Core Services reach them through the Configuration Database and its Linked Servers, and all servers use the domain controller for DNS and Kerberos.
The SQL Server, MSDTC, and domain controller ports are shared by all Nodinite components, so their full details live on one page, SQL Server Firewall Configuration. The tables below list each hop in one row per port and link there.
Between the Core Services and the Log Databases
Section titled “Between the Core Services and the Log Databases”| Direction | Source | Destination | Protocol | Port(s) | Purpose | Notes |
|---|---|---|---|---|---|---|
| Outbound | Core Services Server | SQL Server (Log Databases) | TCP | 1433 | The Logging Service creates and maintains Log Databases; the Log API writes Log Events | Default instance port; named instances and changed ports: Core Services to SQL Server |
| Outbound | Core Services Server | SQL Server (Log Databases) | 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 | SQL Server (Log Databases) | TCP | 135 + dynamic RPC range | MSDTC distributed transactions | Configure MSDTC on both servers; see Core Services to SQL Server |
Between the Configuration Database and the Log Databases
Section titled “Between the Configuration Database and the Log Databases”| Direction | Source | Destination | Protocol | Port(s) | Purpose | Notes |
|---|---|---|---|---|---|---|
| Outbound | SQL Server (Configuration Database) | SQL Server (Log Databases) | TCP | 1433 | Linked Server queries | Only when the Log Databases are on another instance; see SQL Server to SQL Server |
| Both | SQL Server (Configuration Database) | SQL Server (Log Databases) | TCP | 135 + dynamic RPC range | MSDTC for Linked Server transactions | Requires RPC and RPC Out on the Linked Server |
Between every server and the domain controller
Section titled “Between every server and the domain controller”| Direction | Source | Destination | Protocol | Port(s) | Purpose | Notes |
|---|---|---|---|---|---|---|
| Outbound | Core Services Server, SQL Servers | Domain Controller (DNS server) | TCP/UDP | 53 | DNS name resolution | Kerberos needs host names, not IP addresses; hosts-file entries are a fallback |
| Outbound | Core Services Server, SQL Servers | Domain Controller | TCP/UDP | 88 | Kerberos authentication and delegation | Needs registered SPN values; see Domain Controller ports |
| Outbound | Core Services Server, SQL Servers | Domain Controller | TCP/UDP | 389 | LDAP account and group lookups |
What to get right
Section titled “What to get right”- Default and changed ports: SQL Server listens on TCP 1433 by default; a named instance or a changed port uses its own port. Put the port in the Linked Server definition and connection string to avoid UDP 1434.
- Same instance: keeping the Log Databases on the same SQL Server instance as the Configuration Database removes the SQL Server to SQL Server rules. The Linked Server is still required.
- New Log Databases: the Logging Service creates every Log Database itself, including the first one, so open these ports, and grant its account the SQL Server rights, before you start it.
- Versions: these ports are the same in every Nodinite version.
- Azure SQL Managed Instance uses other ports; see Azure SQL Managed Instance.
- DNS (53): every server must resolve the others by name, including Linked Server names and Always On listeners.
Linked Servers
Section titled “ Linked Servers”Nodinite requires Linked Servers to be configured on the Configuration Database SQL instance to access Log Databases, BizTalk databases, and other remote SQL resources. Linked servers are always required, even when all databases reside on the same SQL Server instance.
Quick Reference: Linked Server Names
Section titled “Quick Reference: Linked Server Names”| Environment | Default Instance | Named Instance |
|---|---|---|
| Stand Alone | localhost OR ServerName |
localhost\instancename |
| Fail-Over Cluster | ClusterName |
ClusterName\instancename |
| Always On (AOAG) | ListenerName |
ListenerName\instancename |
Frequently asked questions
Section titled “ Frequently asked questions”Common problems and the FAQ for the Log Database can be found on the Troubleshooting page.
Next Steps
Section titled “ Next Steps” Install Log Databases
Linked Servers
System Parameters
Related Topics
Section titled “ Related Topics” Configuration Database
Core Services
Linked Servers
Log API
Log Databases
Logging Service
Microsoft SQL Server
Monitoring Service
MSDTC
SPN
SQL Firewall
System Parameters
Troubleshooting
Trusted for delegation
Uninstall Log Databases
Update Log Databases