LogSearchSettings - System Parameter
Section titled “LogSearchSettings - System Parameter”New 7.13
LogSearchSettings holds the settings of the Log View search. Its one setting today, RunOnLogDatabaseServer, decides where a search runs its part for a Log Database that is on another SQL Server than the Configuration Database: on that server, or through the linked server as before Nodinite 7.13. The Web API reads it for every Log View search.
At a Glance
Section titled “ At a Glance”| Property | Value |
|---|---|
| Key | LogSearchSettings |
| Data type | json |
| Default | {"RunOnLogDatabaseServer":true} |
| Read by | Web API |
| Takes effect | Within a minute; no restart needed |
| Status | ✅ Active |
| Since | Nodinite 7.13 |
How It Works
Section titled “ How It Works”A Log View search reads each Log Database in its date range. The Log Databases list marks one on another SQL Server as Remote Server; see Log Databases. With RunOnLogDatabaseServer set to true, the search runs that Log Database's part on its own server and fetches only the answer, when the linked server has the option rpc out; see Linked Server RPC and RPC Out. Searches with a Search Field filter are much faster that way.
only the answer returns"| roRemote["fa:fa-database Log Database
on another SQL Server"] roConfig -.->|"false, or no rpc out:
tables read through the linked server"| roRemote style roRemote fill:#2678BD
Where a search runs for a Log Database on another SQL Server (blue): on that server when the setting is true and the linked server has rpc out (solid line), otherwise through the linked server (dotted). With Log Databases on several SQL Servers, each server answers for its own.
What runs on the Log Database's own server:
- The count and the page of a search, also with a filter on the Message Type name or a limit to Integrations, Systems, Services or Contracts (through their Transport Contracts).
- Grouped searches (the group list, the number of groups, an opened group, the filters after grouping, the group size filter, and the group summary), the Services view, and pages beyond row 5,000. New 7.13 This also holds when the Log Databases of a search are on more than one SQL Server: each server answers for its own Log Databases, and the Configuration Database's server puts the answers together.
- New 7.13 A group summary that shows a Repository column (Service, System, Integration, Endpoint, or Message Type name).
What still goes through the linked server:
- A Log Database on the Configuration Database's own server; nothing changes there.
- Every search, when the linked server doesn't have rpc out.
- More than 20,000 groups, or more than 20,000 different summary values for the groups of a page, on one server.
- A page of more than 5,000 rows at once.
- Filters after grouping that combine any, latest, or first with all or none by OR in one group of filters.
- More than 20,000 rows of one Repository or Configuration table that the search has to take along, such as Message Types or Services.
If a search fails on the other server, Nodinite runs it once more through the linked server and doesn't try that kind of search on that server for 10 minutes. The Web API log has a warning with the reason. Under Statistics of a search result, users see whether the search ran on the server of its Log Databases; see Search a Log View.
Value Format
Section titled “ Value Format”| Property | Type | Default | Meaning |
|---|---|---|---|
RunOnLogDatabaseServer |
boolean | true |
true: a search runs its part for a Log Database on another SQL Server on that server. false: every such Log Database is read through its linked server, for every Log View, as before Nodinite 7.13. |
{ "RunOnLogDatabaseServer": true}The value must be a JSON object, and RunOnLogDatabaseServer must be true or false; the value is validated when you save it. Properties this version doesn't know are kept. Later Log View search settings will be added to the same JSON.
Choosing a Value
Section titled “ Choosing a Value”- Keep the default
true. Give the linked server of each remote Log Database the option rpc out, and its searches run on its own server. - Set
falseonly to compare with the behaviour before Nodinite 7.13, or when support asks you to. All Log Views then read every remote Log Database through its linked server again.