Skip to content
Documentation
Updated 14 minutes to read
Markdown

Prerequisites for the Nodinite Logging Service

Section titled “Prerequisites for the Nodinite Logging Service”

Prepare your environment for a successful Nodinite Logging Service deployment. The Logging Service processes every Log Event, creates and maintains the Log Databases, and reads its settings from the Configuration Database, so most of its prerequisites are about SQL Server rights and network access.

In Nodinite v7 the Logging Service is one of the Core Services: its own IIS web site, installed with the Core Services package that you generate in the Nodinite Portal. The overall v7 prerequisites are in the Install Nodinite v7 prerequisites summary; this page covers what is specific to the Logging Service.

Understanding What the Logging Service Needs

Section titled “ Understanding What the Logging Service Needs”
graph LR subgraph "Nodinite Portal" roPortal(fa:fa-sliders Service account, port, TLS) end subgraph "Application Server (Core Services host)" roLoggingService(fa:fa-hard-drive Logging Service - IIS) roWebAPI(fa:fa-cloud-sun Web API - IIS) end subgraph "SQL Server" roConfigDatabase(fa:fa-database Configuration Database) --- | Linked Server | roLogDatabase(fa:fa-database Log Databases) end roPortal -.->|"generated package"| roLoggingService roWebAPI <--> | HTTPS, Portal ports | roLoggingService roLoggingService --- | SQL, DTC, Kerberos | roConfigDatabase roLoggingService --- | SQL, DTC, Kerberos | roLogDatabase

Diagram: The Nodinite Portal sets how the Logging Service is hosted; you prepare the SQL Server rights, MSDTC, Kerberos, and firewall rules between the Logging Service, the Web API, and SQL Server.

What Who sets it Where
Service account (identity) of the Logging Service You, in the Portal Step 2: Auth – Service account defaults, or per service in Step 4: Servers – Core platform services
Logging Service port You, in the Portal Step 4: Servers – Core platform services; confirm in Step 6: Allocated ports
TLS domain name and certificate You, in the Portal Step 4: Servers – Core host Configuration
SQL Server type and connection string You, in the Portal Step 3: Infrastructure – SQL Server connectivity
IIS site, application pool, bindings The installer CLI Step 7: Run the CLI workflow
MSDTC, Kerberos delegation, SQL Server rights, firewall You, before you run the installer This page

What the Portal and installer set, and what you prepare yourself.

The Logging Service runs as its IIS application pool identity, set in the Portal (Service account defaults, or per service in Core platform services). It is the one Core Service that creates databases and grants access on them at run time, so it needs more SQL Server rights than the others. At install and update, the account that runs the installer CLI needs the same SQL Server rights instead; see SQL Server Sysadmin Requirements.

Right On what Why Without it
Logon as a Service and IIS_IUSRS membership The Core Services Server (Windows rights) IIS grants the first to the pool identity when the pool starts and starts the worker process as a batch logon through IIS_IUSRS; a Group Policy that defines either right must keep the identity or IIS_IUSRS (details) The application pool doesn't start
A login plus sysadmin, or dbcreator, diskadmin, and securityadmin Every SQL Server instance that gets Log Databases (Account rights) It deploys each Log Database as a data-tier application (Deploy a Data-tier Application). It owns each database it creates, and adds the LogServiceUsers logins to the LogAccessRoles there No first Log Database, and no split later
EXECUTE The Configuration Database (Nodinite databases) It processes Log Events and runs maintenance through stored procedures Processing and maintenance fail
db_ddladmin or db_owner Only Log Databases it did not create (made by hand or moved in) Index maintenance and shrink while DatabaseMaintenance is on; on its own Log Databases it is the owner Maintenance fails on those databases
VIEW SERVER STATE and ALTER ANY AVAILABILITY GROUP, dbcreator on each secondary, and a share in AvailabilityGroupBackupPath Every node, Always On only It adds each new Log Database to the availability group and restores it on the secondaries A new Log Database stays on the primary only, outside the group
Trusted for delegation The service identity, in Active Directory It reaches a Log Database on another instance, and BizTalk tracking databases, through Linked Servers (Kerberos) Those calls fail with an anonymous login
A configured MSDTC Every SQL Server involved, when a Log Database is on another instance A write to a remote Log Database inside a transaction becomes a distributed transaction (DTC) Writes to that Log Database fail
Inbound on the Logging Service port The Core Services Server, from the Web API (firewall) The Web Client shows the Logging Service's state through the Web API The Web Client can't show its state

SQL Server Sysadmin Requirements has the rights model to use when your policy blocks sysadmin, and Create new Log Databases Manually the way to run without dbcreator.

When the Core Services Run as Different Accounts

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

When the Logging Service has its own account, the other services don't get its rights, and it doesn't get theirs:

  • Add every other Core Service identity that is not sysadmin to LogServiceUsers, so the Logging Service grants it access on each new Log Database. Create their logins first: the Logging Service never creates a login, and a missing one gives a Critical Log Audit Failed to grant the role.
  • The Logging Service identity itself needs no entry in LogServiceUsers: it owns the Log Databases it creates and skips its own account.
  • Give the Logging Service account its own login and the rights above on every instance and every Always On node; SQL logins are not replicated between nodes.
  • The Core Services Overview compares the rights of all services.

After you change its account or rights, restart its application pool in IIS Manager. Then open the bell next to your user name in the Web Client: the Logging Service shows as online. Under Administration › Settings › Log Databases, the online Log Database (no End Date) is the one it writes new events to.

The bell's status menu with the Logging Service online, then Administration, Settings, Log Databases with the online database selected
After a restart, the Logging Service is online again and writes to the online Log Database.

Microsoft Distributed Transaction Coordinator (DTC)

Section titled “ Microsoft Distributed Transaction Coordinator (DTC)”

The Windows service Microsoft Distributed Transaction Coordinator (DTC) matters to the Logging Service only 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 becomes a distributed transaction. With every Log Database on one 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 Logging Service require?

Section titled “ What Windows rights does the Logging Service require?”

In Nodinite v7, the Logging Service runs as its own IIS web site under the service account you set in the Nodinite Portal (Service account defaults, or per service in Core platform services). It is an ASP.NET Core web application, not a Windows service. The installer CLI creates the site and application pool with that identity; don't change the identity in IIS Manager.

  • Use a domain account or a gMSA account; a gMSA must exist in Active Directory before you run the installer
  • The least-privilege Windows rights of an application pool identity: Logon as a Service and IIS_IUSRS membership, no local administrator rights - see IIS Application Pool Identities
  • The service account must have the SQL Server rights in the next section
  • This service should always be running: set its application pool to Start Mode AlwaysRunning and Idle Time-out 0, or IIS stops an idle Logging Service and the event processing with it
  • This service should not be clustered - Read more on the Support page to get technical assistance from our team

Changing System Parameters or Log Agent settings never requires a restart of the Logging Service.

When the Logging Service reaches a SQL Server instance other than the Configuration Database's (a remote Log Database, or BizTalk databases through Linked Servers), Kerberos delegation must be configured. See the Trusted for delegation guide for step-by-step instructions.

What SQL Rights does the Logging Service require?

Section titled “ What SQL Rights does the Logging Service require?”

For security and performance reasons, the Logging Service accesses the databases using its service account. Its SQL Server connection is the ConnectionStrings:NodiniteConfig value in its appsettings.json, which the CLI writes from the Portal (SQL Server connectivity). The SqlServer System Parameter holds the host and Linked Server name it uses when it creates a new Log Database.

The Logging Service must have the following SQL rights assigned.

For every SQL Instance that gets Log Databases, add the account and grant it the rights detailed next.

The service account used for the Logging Service must be defined on each SQL Server node with the Nodinite Configuration Database and Log Databases.

  • Shrink Rights – Nodinite can shrink old Log Databases (NOT the online one) while the DatabaseMaintenance System Parameter is on. Shrink needs db_owner: the Logging Service owns every Log Database it creates, so it needs nothing extra for those; grant db_owner only on a Log Database added by hand. Shrink is skipped on an Always On Availability Group. For more information, read about DBCC SHRINKFILE.

Use SQL Server Sysadmin Requirements for a complete rights matrix and what to configure when the service account is not sysadmin.

Scope Permission / Role Description Microsoft Docs Link
Instance public Right to log on to SQL instances hosting the Nodinite Configuration and Log Databases database-level roles
Instance dbcreator Creates each new Log Database and its files (also the files in LogLocations) dbcreator
Instance diskadmin Manages the disk files of the Log Databases diskadmin
Instance securityadmin Includes ALTER ANY LOGIN, which a data-tier application deploy needs with dbcreator securityadmin
USE master
GO
ALTER SERVER ROLE dbcreator ADD MEMBER [DOMAIN\USER];
ALTER SERVER ROLE diskadmin ADD MEMBER [DOMAIN\USER];
ALTER SERVER ROLE securityadmin ADD MEMBER [DOMAIN\USER];
GO

Replace [DOMAIN\USER] with the Windows account being used for the Logging Service. The login must exist.

Apply settings on each and every SQL instance where Nodinite databases are hosted.

The Logging Service registers each new Log Database as a data-tier application, which SQL Server records in msdb (dbo.sysdac_instances); on an Always On Availability Group it registers it on every replica. Nodinite creates no SQL Server Agent jobs and runs no DDL in msdb. sysadmin covers the registration. With the three roles instead, if a Log Database is not created, look for an msdb error in DiagnosticsFiles\diagnostic.log.json and grant what it names.

On an Always On Availability Group, grant these rights on every node:

USE MASTER
GO
GRANT VIEW SERVER STATE TO [DOMAIN\USER]
GRANT ALTER ANY AVAILABILITY GROUP TO [DOMAIN\USER];
GO

Replace [DOMAIN\USER] with the Windows account being used for the Logging Service. The Login must exist.

When the Logging Service creates a Log Database on an Always On Availability Group, it also needs the backup share in AvailabilityGroupBackupPath, and dbcreator on each secondary replica with manual seeding, where it restores the new database.

Database Permission Description Microsoft Docs Link
Configuration Database EXECUTE Runs the Nodinite stored procedures; the Configuration Database is never shrunk or reindexed by the Logging Service GRANT
Log Databases it created Owner (dbo) Comes with creating the database; covers processing, index maintenance, and shrink db_owner
Log Databases added by hand db_ddladmin/db_owner Index maintenance (db_ddladmin) and shrink (db_owner) while DatabaseMaintenance is enabled db_ddladmin, db_owner

Grant Execute rights on the Nodinite stored procedures in the Configuration Database for the account used by the Logging Service:

GRANT EXECUTE TO [Domain\\user]

Replace [Domain\user] with the Windows account being used for the Logging Service.

What Firewall settings are required for the Logging Service

Section titled “ What Firewall settings are required for the Logging Service”

The Logging Service talks to the Web API on the same server, to SQL Server, and to the domain controller. It creates the Log Databases itself, starting with the first one, so the SQL Server ports must be open before it starts. The diagram shows each host, with the port on the arrow, drawn from the side that opens the connection.

graph LR subgraph "Nodinite Core Services Server" roLS["fa:fa-hard-drive Logging Service - IIS"] roWebAPI["fa:fa-cloud-sun Web API - IIS"] end subgraph "SQL Server" roConfig["fa:fa-database Configuration Database"] roLogDB["fa:fa-database Log Databases"] end subgraph "Domain Controller" roDC["fa:fa-server DNS, Kerberos, LDAP"] end roWebAPI -->|"Logging Service port"| roLS roLS -->|"Web API port"| roWebAPI roLS -->|"TCP 1433, MSDTC 135 + RPC"| roConfig roLS -->|"TCP 1433, MSDTC 135 + RPC"| roLogDB roConfig -->|"Linked Server"| roLogDB roLS -->|"53, 88, 389"| roDC

Diagram: the Logging Service and the Web API call each other on their Portal ports, the Logging Service connects to the Configuration and Log Databases, and it uses the domain controller for DNS and Kerberos.

On Windows Server, each Core Service is its own IIS web site on its own port. You set the ports per environment in the Nodinite Portal (Step 4: Servers – Core platform services), and the Portal lists them in Step 6: Allocated ports. Ports in examples, such as 40000–40004, are examples only. The installer CLI configures the IIS bindings from these values; it doesn't change your firewall rules.

Between the Logging Service and the Web API

Section titled “Between the Logging Service and the Web API”

The Web Client shows the state of the Logging Service to Users: it asks the Web API, which queries the Logging Service. The Web API finds the Logging Service through the ProductArtifactsPath System Parameter, set by the installer.

Direction Source Destination Protocol Port(s) Purpose Notes
Inbound Core Services Server (Web API) Core Services Server (Logging Service) TCP (HTTPS) Logging Service port Status and operations requested from the Web Client Set in the Portal; no rule needed unless a host firewall restricts local traffic
Outbound Core Services Server (Logging Service) Core Services Server (Web API) TCP (HTTPS) Web API port The Logging Service calls the Web API Set in the Portal; same server

Between the Logging Service and SQL Server

Section titled “Between the Logging Service and SQL Server”

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 SQL Server (Configuration and Log Databases) TCP 1433 Read settings, process Log Events, create and maintain Log Databases Default instance port; named instances and changed ports: Core Services to SQL Server
Outbound Core Services Server 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 SQL Server TCP 135 + dynamic RPC range MSDTC distributed transactions Configure MSDTC on both servers; see Core Services to SQL Server

The Configuration Database reaches the Log Databases, and the BizTalk tracking databases when you log from BizTalk Server, through Linked Servers; those SQL Server to SQL Server ports are on the Configuration Database prerequisites.

Between the Core Services Server and the domain controller

Section titled “Between the Core Services Server and the domain controller”
Direction Source Destination Protocol Port(s) Purpose Notes
Outbound Core Services Server 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 Domain Controller TCP/UDP 88 Kerberos authentication and delegation to SQL Server See Kerberos Configuration and Domain Controller ports
Outbound Core Services Server Domain Controller TCP/UDP 389 LDAP account and group lookups
  • Default ports: the Logging Service and Web API ports have no fixed default; use the values in Allocated ports. SQL Server uses TCP 1433 unless you changed it.
  • Versions: Nodinite v7 replaced the fixed port of earlier versions with the Portal ports; see Why do Nodinite use port 8000 when you clean up old rules.
  • DNS (53): the Core Services Server must resolve the SQL Server names, including Always On listeners, and its own TLS host name.

Additional solutions to common problems and the Nodinite Logging Service FAQ exist in the Troubleshooting user guide.

Install Logging Service
Key System Parameters for Logging Service
Search Fields

Configuration Database
Core Services
LogAccessRoles
Log Databases
Logging Service
LogServiceUsers
Message Types
MSDTC
Search Fields
SQL Server Firewall
System Parameters
Troubleshooting
Trusted for delegation
Uninstall Logging Service
Update Logging Service
Users
Web 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...