Skip to content
Documentation
Updated 9 minutes to read
Markdown

Add, manage, move, and delete Log Database registrations in Nodinite to keep log data storage secure, efficient, and scalable. This guide helps administrators configure SQL Server settings, use cheaper storage for old data, and stay compliant.

  • ✅ Add, edit, move, and delete Log Databases without touching physical SQL data
  • ✅ Flexible configuration for SQL Server, Always-On, and linked servers
  • ✅ Read-only mode for compliance and safe archiving
  • ✅ Administration from the Web Client

The registration tells Nodinite where each physical Log Database is. You don't touch the physical database within the Microsoft SQL Server instance in any way when you add or remove a registration from within the Nodinite Web Client. The physical database is created by the Nodinite Logging Service (governed by SizeToSplitDatabaseOn and DaysToSplitDatabaseOn) or by creating it manually.

Use the administration pages in the Web Client to:

  • Change the location information after moving a database from one SQL Server instance to another, for example to a SQL Server hotel where disk is cheaper, or to use hardware resources better. Renaming a Log Database is also possible.
  • Register an archive Log Database that was moved or restored.
  • Set an archive Log Database read-only.
  • Safely delete empty archive databases.

Each Log Database moves through the same stages. The Web Client registration follows it all the way, and only the last step happens outside Nodinite.

graph LR A["fa:fa-plus Created
Logging Service or manually"] --> B["fa:fa-database Online
receives new events, no End Date"] B -->|"next Log Database created"| C["fa:fa-box-archive Archive
searched from Log Views"] C -->|"optional"| D["fa:fa-lock Read-only
no maintenance or deletes"] C -->|"retention empties it"| E["fa:fa-trash-can Empty
delete the registration"] D --> E E -->|"SSMS"| F["fa:fa-ban Physical database dropped"] style A fill:#2678BD,color:#fff style B fill:#93d16d,color:#000 style C fill:#3F827B,color:#fff style D fill:#9E59BB,color:#fff style E fill:#FFD525,color:#000 style F fill:#c33d34,color:#fff

Green: the single online Log Database. Teal and purple: archive and read-only archive databases. Yellow: empty, ready for removal. Red: the irreversible drop, done in SQL Server Management Studio.

How fast an archive Log Database empties depends on the retention System Parameters, for example DaysToKeepMessageEventsDefault and DaysToKeepMessageDataDefault, applied by the Logging Service cleanup every CleanUpTimerInterval.

A name for the Log Database is mandatory. To insert new Log Events, Nodinite must always know about at least one Log Database.

The Add Log Database page and the edit page have these fields:

  • Database (the name)
  • Linked Server / Listener Name (might include the instance name)
  • Remote server
  • Read-only
  • Archive Database (on Add only)
  • Start date-time and End date-time
  • Description

Add Log Database page filled in for a restored archive, with Archive Database ticked and no date fields (7.12)
Add Log Database is a page, not a dialog. Fields marked with one star are required; fields marked with two stars can only be changed after the End date has passed.

Register the restored archive Nodinite_DEV_Log_20221228 as a read-only archive Log Database, animated walkthrough (7.12)
Animated walkthrough: the dates come from the database itself.

  1. On the Log Databases page, click Add Log Database.
  2. Enter Database, here Nodinite_DEV_Log_20221228, and Linked Server / Listener Name, here localhost.
  3. Archive Database is ticked by default, so the date fields are hidden. Tick Read-only and add a Description.
  4. Click Save and close. The list shows the registration with the Start and End Date of its events.

Open an archive Log Database, change its Description, and save, animated walkthrough (7.12)
Animated walkthrough: only the registration changes, never the database itself.

  1. Click the name of the Log Database in the list, or choose Edit from its Action menu.
  2. Change what you need, here the Description. Start date-time and End date-time are read-only once saved.
  3. Click Save and close. The list shows the change.

Enter the database name. This field is required to create the Log Database configuration.

The name follows the LogDatabaseName pattern, by default Nodinite_<EnvironmentName>_Log_{year}{month}{day}, for example Nodinite_Prod_Log_20251028. Databases upgraded from older versions keep their original names. See Log Database Naming for how the pattern is built from EnvironmentName. New 7.12 The hint under Database explains the pattern: the Logging Service replaces {year}, {month}, and {day} with the date (UTC) it creates the database, not with its start date, so Nodinite_DEV_Log_{year}{month}{day} gives Nodinite_DEV_Log_20241113 for a database created on 13 November 2024; use the same pattern for a database you add by hand.

Edit page of the online Log Database with the Database hint explaining the LogDatabaseName pattern and the End date-time hint (7.12)
The Database hint, and the End date-time hint saying only an archive Log Database (its End date has passed) can be deleted.

Add the name of the target SQL Server instance. The database must exist on that server, and the pair of Database and Linked Server / Listener Name must be unique.

  • If the Log Database is located on the same server as the Nodinite Configuration Database, use localhost or localhost\instancename.
  • Otherwise, enter the name of the linked server. Remote Log Databases are always accessed through linked servers. The SqlServer System Parameter holds the linked server name Nodinite uses for Log Databases.

Check this checkbox to make the Log Database read-only. When checked, there is no internal maintenance (see DatabaseMaintenance), and operations like re-index, delete/truncate, or insert are suspended. Nodinite still searches the database from Log Views.

In relation to the Nodinite Configuration Database, check the checkbox if the Log Database is located on a remote SQL Server instance.

Remote Log Databases require a linked server between the SQL Server instance with the Configuration Database and the remote Log Database.

Archive Database is ticked by default on Add. Keep it ticked when you register an older Log Database, for example one you moved or restored: the date fields are hidden, and Nodinite sets the start and end time from the oldest and newest Log Event, Log Audit, or Monitor Event in it. A database without data is refused (The database contains no data and should not be added).

Untick it to register a future Log Database with a Start date-time, for example one you created manually. That sets the End Date of the current online Log Database to the new Start date-time, so the new one becomes the online Log Database. Only one Log Database can lack an End Date.

For an archive Log Database, this is the start date for Log Events. For a future Log Database (for example one you created manually), this value makes sure future events enter the correct target database when the time comes.

Start date-time and End date-time of an existing archive Log Database, both read-only (7.12)
Both dates are read-only once the registration is saved. The End date-time is set from the Start date of the next Log Database, or left empty for the online one.

For an archive Log Database, this is the end date for Log Events in that particular database. Nodinite sets it from the Start date of the next Log Database.

The online Log Database has no End date-time until a next Log Database is planned. Planning one (see Archive Database) gives the online Log Database a planned End date-time in the future; it stays online and keeps receiving new events until then. The last Log Database, the online or the planned one, never has an End date-time.

Start date-time and End date-time of the online Log Database with a planned End date-time of 2026-12-18 (7.12)
The online Log Database with a planned End date-time: it stays online until then and has no Delete button.

The optional field Description gives this configuration a user-friendly meaning.

As time goes by, the archive Nodinite Log Databases get smaller and smaller as retention removes old data, until they are empty. The Nodinite administrator can and should remove empty Log Databases. Deleting a non-empty Log Database results in permanent, irreversible data loss: the data is no longer accessible from the Nodinite Web Client or the Web API.

Only an archive Log Database, one whose End date has passed, can be deleted. New 7.12 Every other Log Database has no Delete button on its edit page, and the Web API (DELETE api/LogDatabases/{id}) refuses the delete with HTTP 400 and says why:

Log Database The Web API's reason
The online one, without an End date … is the online Log Database and receives the new events.
The online one, with a planned End date … is the online Log Database until its End date 2026-12-18 00:00:00 UTC.
A planned one, whose Start date is still in the future … is planned to start (date) UTC and holds no archived events yet.

Each reason ends with Only an archive Log Database, one whose End date has passed, can be removed from the configuration. Deleting removes the registration only: the physical database is not deleted in SQL Server; you must delete it manually from within SSMS.

To manually remove an empty archive Log Database, follow the steps below in order. Skipping steps or reversing the order can leave your system in an inconsistent state.

Open an empty archive, check its Database Report, delete the registration, and confirm with Yes, animated walkthrough (7.12)
Animated walkthrough: the registration goes, the database stays on the SQL Server.

  1. Make sure the database is empty. Use SSMS, or open the Log Database and click Show Database Report (optional): it shows the size, the event counts, and the backups.
    Show Database Report button on the Log Database edit page (7.12)
    The database report shows how much data is left in the Log Database.
  2. Click Delete in the footer of the edit page.
    Footer of an archive Log Database's edit page with Delete, Save, Save and close (7.12)
    An archive Log Database (here the first half of 2024) has Delete in its footer.
    Footer of the online Log Database's edit page with only Save and Save and close, no Delete (7.12)
    The online Log Database has no Delete button, also while it has a planned End date.
    Confirm intent to Delete asks you to confirm, under a WARNING - POSSIBLE DATA LOSS banner. Click Yes. The page confirms the deletion and returns to the list.
    Confirm intent to Delete dialog with the WARNING - POSSIBLE DATA LOSS banner and Yes and No (7.12)
    The dialog states that the physical database in SQL Server is not deleted.
  3. Remove the physical database from the SQL Server instance using SSMS (not from the file system directly). This frees disk space on SQL Server. Deleting the files directly bypasses SQL Server's shutdown procedures and can corrupt system metadata.

If you use a SQL Server Always-On availability group to host the Log Database, provide the following details:

  • Enter the name of the Always-On group (usually the listener name) as Linked Server / Listener Name.
  • Check Remote server.

Log Database form with the listener CONTOSO-AG-LISTENER as Linked Server / Listener Name and Remote server checked (7.12)
Example settings for a SQL Server Always-On availability group.

Make sure the linked servers are set up using the listener name. Review the 'About Always-On' user guide for details.

For new Log Databases in an availability group, set LogDatabaseRecovery to FULL and AvailabilityGroupBackupPath to the network share the Logging Service uses for the backup that the secondary replicas restore.

The following user guides are usually helpful:

Moving a Nodinite Log Database is detailed in the 'Moving Nodinite Databases' user guide. After the move, edit the registration here and change Linked Server / Listener Name (and Remote server) accordingly.

...

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