---
title: LogSearchSettings - System Parameter for Log View Searches on Remote Log Databases
description: "LogSearchSettings controls where a Nodinite Log View search runs for a Log Database on another SQL Server: on that server (RunOnLogDatabaseServer true, the default, needs rpc out) or through the linked server as before 7.13."
---

# LogSearchSettings - System Parameter

<sup><span class="nodinite-new-badge">New 7.13</span></sup>

**LogSearchSettings** holds the settings of the [Log View][Log Views] search. Its one setting today, `RunOnLogDatabaseServer`, decides where a search runs its part for a [Log Database][Log Databases] that is on another SQL Server than the [Configuration Database][ConfigDB]: on that server, or through the [linked server][Linked Servers] as before <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 7.13. The [Web API][] reads it for every Log View search.

<h2 id="at-a-glance"><i class="fal fa-table" aria-hidden="true"></i> At a Glance</h2>

| 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 | <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 7.13 |

## <i class="fal fa-gears" aria-hidden="true"></i> 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][Log Databases Admin]. 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][RPC Out]. Searches with a [Search Field][Search Fields] filter are much faster that way.

<div class="mermaid">
graph LR
    roApi["fa:fa-cloud Web API"] --> roConfig["fa:fa-database Configuration Database"]
    roConfig -->|"true: the search runs here,<br/>only the answer returns"| roRemote["fa:fa-database Log Database<br/>on another SQL Server"]
    roConfig -.->|"false, or no rpc out:<br/>tables read through the linked server"| roRemote
    style roRemote fill:#2678BD
</div>

*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][Message Types] 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. <sup><span class="nodinite-new-badge">New 7.13</span></sup> 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.
* <sup><span class="nodinite-new-badge">New 7.13</span></sup> A group summary that shows a Repository column (Service, System, Integration, [Endpoint][Endpoints], 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, <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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][Search a Log View - What you see].

## <i class="fal fa-code" aria-hidden="true"></i> 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 7.13. |

```json
{
  "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.

## <i class="fal fa-lightbulb" aria-hidden="true"></i> 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 `false` only to compare with the behaviour before <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 7.13, or when support asks you to. All Log Views then read every remote Log Database through its linked server again.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-magnifying-glass" aria-hidden="true"></i> [Search a Log View][]  
* <i class="fal fa-pen-to-square" aria-hidden="true"></i> [Manage System Parameters][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-database" aria-hidden="true"></i> [Log Databases][Log Databases Admin]  
* <i class="fal fa-link" aria-hidden="true"></i> [Linked Servers][]  
* <i class="fal fa-plug" aria-hidden="true"></i> [Linked Server RPC and RPC Out][RPC Out]  
* <i class="fal fa-server" aria-hidden="true"></i> [SqlServer][]  
* <i class="fal fa-sliders" aria-hidden="true"></i> [System Parameters][]  

[ConfigDB]:https://docs.nodinite.com/core-services/configuration-database/overview/
[Contracts]:https://docs.nodinite.com/getting-started/repository/contracts/overview/
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Integrations]:https://docs.nodinite.com/repository-model/integrations/overview/
[Linked Servers]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/linked-servers/
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[Log Databases Admin]:https://docs.nodinite.com/administration/settings/log-databases/overview/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Manage System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/manage-system-parameters/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[RPC Out]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/linked-server-rpc-and-rpc-out/
[Search a Log View]:https://docs.nodinite.com/getting-started/log/search-a-log-view/
[Search a Log View - What you see]:https://docs.nodinite.com/getting-started/log/search-a-log-view/#statistics
[Search Fields]:https://docs.nodinite.com/administration/log-management/search-fields/features/what-is-a-search-field/
[Services]:https://docs.nodinite.com/repository-model/services/overview/
[SqlServer]:https://docs.nodinite.com/administration/settings/system-parameters/sqlserver/
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Systems]:https://docs.nodinite.com/repository-model/systems/overview/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/