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

:new7.13:

**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 :Nodinite: 7.13. The [Web API][] reads it for every Log View search.

## :fa-table: At a Glance {#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 |

## :fa-gears: 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. :new7.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.
* :new7.13: 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, :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][Search a Log View - What you see].

## :fa-code: 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. |

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

## :fa-lightbulb: 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 :Nodinite: 7.13, or when support asks you to. All Log Views then read every remote Log Database through its linked server again.

## :fa-hand-point-right: Next Steps

* :fa-magnifying-glass: [Search a Log View][]  
* :fa-pen-to-square: [Manage System Parameters][]  

## :fa-link-horizontal: Related Topics

* :fa-database: [Log Databases][Log Databases Admin]  
* :fa-link: [Linked Servers][]  
* :fa-plug: [Linked Server RPC and RPC Out][RPC Out]  
* :fa-server: [SqlServer][]  
* :fa-sliders: [System Parameters][]  

[ConfigDB]:{ndr}/Core%20Services/Configuration%20Database/Overview.md
[Contracts]:{ndr}/Getting%20Started/4.%20Repository/Contracts/Overview.md
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[Integrations]:{ndr}/Repository%20Model/Integrations/Overview.md
[Linked Servers]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Linked%20Servers.md
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[Log Databases Admin]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Overview.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Manage System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Manage%20System%20Parameters.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[RPC Out]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/Linked%20Server%20RPC%20and%20RPC%20Out.md
[Search a Log View]:{ndr}/Getting%20Started/2.%20Log/Search%20a%20Log%20View.md
[Search a Log View - What you see]:{ndr}/Getting%20Started/2.%20Log/Search%20a%20Log%20View.md#statistics
[Search Fields]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md
[Services]:{ndr}/Repository%20Model/Services/Overview.md
[SqlServer]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SqlServer.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Systems]:{ndr}/Repository%20Model/Systems/Overview.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md