Skip to content
Documentation
Updated 5 minutes to read
Markdown

Keep your Nodinite environment lean by removing Message Types and Endpoints that no longer receive Log Events. In Nodinite 7 you do this in the Web Client: find the unused items, delete them, then permanently delete them. Every permanent delete shows what goes with the item first and leaves a Log Audit entry.

  • ✅ Find unused Message Types and Endpoints by their Last Event, without SQL
  • ✅ Remove many at once with With Selected, after an impact preview
  • ✅ Every removal is restorable until you permanently delete it, and audited when you do
  • ✅ Read-only SQL queries find candidates when the lists are very long

Nodinite tracks every combination of Message Type and Endpoint it has logged in the LogPoints table of the Configuration Database, with FirstSeen and LastSeen. The Logging Service keeps them current. An item whose newest LastSeen is older than the retention of its events has no Log Events left in the Log Databases: it is no longer in use.

flowchart LR F["fa:fa-magnifying-glass Find
sort by Last Event"] --> D["fa:fa-trash-can Delete
restorable"] D --> P["fa:fa-trash-xmark Permanently Delete
impact preview"] P --> A["fa:fa-clipboard-list Log Audit
one entry"] style F fill:#2678BD,color:#fff style D fill:#FFD525,color:#000 style P fill:#c33d34,color:#fff style A fill:#3F827B,color:#fff

Blue: you find the candidates in the Message Types or Endpoints list. Yellow: Delete is a soft delete you can undo with Restore. Red: Permanently Delete removes the item and everything that refers to it. Teal: Log Audit Search records who removed what. See Two delete models.

Item Its retention Who may remove it
Message Type Its own Days to keep events (also messages and context) Administrators (Permanently Delete)
Endpoint None of its own: its Log Events follow their Message Types' retention Administrators (Permanently Delete)
Log Agent Not applicable Administrators, one at a time; removes every Endpoint of the agent

Step 1: Find Unused Message Types and Endpoints

Section titled “ Step 1: Find Unused Message Types and Endpoints”
  1. In Administration > Repository, open Message Types (or Endpoints).
  2. Sort the list by Last Event, oldest first. Last Event is the last time an event with this Message Type (or on this Endpoint) was seen. N/A means the item was never logged.
  3. The items at the top are your candidates. Compare a Message Type's Last Event with its Days to keep events. For Endpoints, choose your own threshold, such as the longest retention of the Message Types logged on them.

The Web API returns the same value as EventLastSeen for Administrators.

With thousands of items, a query can list the candidates for you. These queries only read; run them in SQL Server Management Studio against the Configuration Database, then remove the items in the Web Client (Step 2).

-- Message Types whose every Log Point is older than the Message Type's retention.
-- Id 0 is the default Unknown Message Type and is never removed.
;WITH Old AS (
SELECT LP.MessageTypeId, MAX(LP.LastSeen) AS LastSeen
FROM LogPoints LP
JOIN MessageTypes MT ON LP.MessageTypeId = MT.MessageTypeId AND MT.MessageTypeId > 0
GROUP BY LP.MessageTypeId, MT.DaysToKeepEvents
HAVING MAX(LP.LastSeen) < DATEADD(DD, MT.DaysToKeepEvents * -1, GETDATE())
)
SELECT MT.MessageTypeId, MT.Name, Old.LastSeen
FROM Old
JOIN MessageTypes MT ON MT.MessageTypeId = Old.MessageTypeId
ORDER BY Old.LastSeen

Each Message Type listed has no Log Point newer than its own retention.

-- Endpoints with no Log Point newer than your threshold (92 days here; Endpoints have no retention of their own).
-- Id 0 is the default Endpoint and is never removed.
DECLARE @days INT = 92;
SELECT EP.EndPointId, EP.Name, MAX(LP.LastSeen) AS LastSeen
FROM [EndPoints] EP
LEFT JOIN LogPoints LP ON LP.EndPointId = EP.EndPointId
WHERE EP.EndPointId > 0
GROUP BY EP.EndPointId, EP.Name
HAVING MAX(LP.LastSeen) IS NULL OR MAX(LP.LastSeen) < DATEADD(DD, @days * -1, GETDATE())
ORDER BY LastSeen

A NULL LastSeen means the Endpoint was never logged.

  1. In the list, tick the candidates, and choose With Selected > Delete. They are soft deleted and can still be restored.
  2. Tick Include deleted, tick the same items again, and choose With Selected > Permanently Delete.
  3. Read the impact dialog. It counts what goes with the items (Log Points and their metrics, Custom Metadata values, Tag and Article links, Log and Monitor View filters, Transport Contract links) and lists the Log and Monitor Views that change.
  4. Tick that you understand it can't be undone, and confirm.

A Message Type that a C4 Flow carries loses only that binding: the Flow stays. An Endpoint's default Message Type is cleared, not the Endpoint. A Transport Contract left without a Message Type or an Endpoint is removed with its Contract. The full lists are in What is removed, and what is kept for Message Types and the same section for Endpoints.

In Administration > Tools > Log Audit Search, pick the Function cnfg_MessageTypes_HardDelete or cnfg_EndPoints_HardDelete, and click Search. Each permanent delete is one entry that names what was removed and who removed it.

...

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