---
title: LogLocations System Parameter – File Placement for New Log Databases
description: LogLocations is a JSON System Parameter that tells the Nodinite Logging Service which disks to place the data, image data, index, and transaction log files of new Log Databases on, rotating round-robin.
---

# LogLocations - System Parameter

**LogLocations** tells the [Logging Service][] where to place the files of each new [Log Database][Log Databases]: data, image data, index, primary, and transaction log, on one or several disks. With several configurations, the Logging Service rotates through them round-robin. It is one of the [System Parameters][] applied in [How a new Log Database is created][].

![Setting LogLocations in the Web Client: filter the System Parameters list, open the empty LogLocations, enter one configuration that places every file group on disk H:, Json model is valid, Save, and the saved value, animated walkthrough (7.12)][Hero]  
*Animated walkthrough: open the empty **LogLocations**, enter one configuration on disk H:, see **Json model is valid**, and click **Save**. The Logging Service places the files of the next Log Database it creates in these folders.*  

## :fa-table: At a Glance {#at-a-glance}

| Property | Value |
| --- | --- |
| Key | `LogLocations` |
| Data type | json |
| Default | Empty (`null`): SQL Server default locations apply |
| Read by | [Logging Service][] |
| Takes effect | Within about 15 seconds; no restart needed. Applies to the next Log Database the Logging Service creates. |
| Status | ✅ Active |
| Since | Nodinite 4.3.0.26; renamed from `ImLogLocations` in Nodinite 7 |

## :fa-gears: How It Works

SQL Server's own settings only hold one default folder for data files and one for log files.

![SQL Server Database Settings page with the default data, log, and backup locations][1]  
*SQL Server Database Settings hold only the DATA, LOG, and Backup default locations.*  

A :Nodinite: Log Database has more file groups, and LogLocations lets you put each on its own disk to spread the read and write load:

| File group | JSON property | Holds |
| --- | --- | --- |
| Data | `CustomPathData` | The main tables |
| ImageData | `CustomPathImagedata` | Message payloads, kept apart from the event tables to reduce fragmentation |
| Index | `CustomPathIndex` | Clustered and other indexes |
| Primary | `DefaultPath` | The SQL Server primary file (not used for :Nodinite: data) |
| Log | `DefaultPathLog` | The transaction log |

The recovery model of the new Log Database is set by [LogDatabaseRecovery][], not by this parameter.

When the value is empty, SQL Server places every file in its default locations. When it holds configurations, the Logging Service picks one for each new Log Database: the configuration with the lowest `Order` above `LastOrderDeployed`, or, when none is above, the one with the lowest `Order`. It creates the files in that configuration's folders and sets `LastOrderDeployed` to its `Order`. With one configuration, it always uses that one.

<div class="mermaid">
flowchart LR
    A["fa:fa-database New Log Database"] --> B{"LogLocations<br/>set?"}
    B -->|"No"| C["fa:fa-folder SQL Server default locations"]
    B -->|"Yes"| D["fa:fa-list-ol Next configuration<br/>by Order"]
    D --> E["fa:fa-hard-drive Files created in its folders"]
    E --> F["fa:fa-rotate LastOrderDeployed updated"]
    style C fill:#2678BD,color:#fff
    style D fill:#3F827B,color:#fff
    style E fill:#3F827B,color:#fff
    style F fill:#3F827B,color:#fff
</div>

*Diagram: how the Logging Service chooses file locations for a new Log Database. Blue: SQL Server default locations (LogLocations empty); green: the LogLocations rotation.*

## :fa-code: Value Format

| Property | Type | Default | Meaning |
| --- | --- | --- | --- |
| `Configurations` | array | – | One entry per disk layout; the [Logging Service][] rotates through them. |
| `Configurations[].CustomPathData` | string | – | Folder for the Data file group. |
| `Configurations[].CustomPathImagedata` | string | – | Folder for the ImageData file group. |
| `Configurations[].CustomPathIndex` | string | – | Folder for the Index file group. |
| `Configurations[].DefaultPath` | string | – | Folder for the primary file. |
| `Configurations[].DefaultPathLog` | string | – | Folder for the transaction log. |
| `Configurations[].Order` | integer | – | Zero-based position of the configuration in the rotation. |
| `LastOrderDeployed` | integer | `0` | The `Order` of the configuration used last; the [Logging Service][] updates it. The next [Log Database][Log Databases] uses the next higher `Order`, so with `0` and Orders `0`, `1`, `2` it starts with Order `1`. To start with Order `0`, set it to the highest `Order` (or `-1`). |

Paths are folders on the SQL Server host. In JSON, write each backslash twice.

>[!IMPORTANT]
>The JSON check in the [Web Client][] only checks that the value fits this structure. Unknown or misspelled properties are ignored, and even `{}` shows **Json model is valid**, so compare the property names with the table above.

### Example: One Disk Instead of the SQL Server Defaults

All files go to disk H:.

```json
{
  "Configurations": [
    {
      "CustomPathData": "H:\\MSSQLSERVER\\DATA\\",
      "CustomPathImagedata": "H:\\MSSQLSERVER\\DATA\\",
      "CustomPathIndex": "H:\\MSSQLSERVER\\DATA\\",
      "DefaultPath": "H:\\MSSQLSERVER\\DATA\\",
      "DefaultPathLog": "H:\\MSSQLSERVER\\LOG\\",
      "Order": 0
    }
  ],
  "LastOrderDeployed": 0
}
```

### Example: Four Disks in Three Rotating Configurations

Data, image data, and index rotate over K:, L:, and M:; the primary file and the transaction log stay on N:. `LastOrderDeployed` is `2`, the highest `Order`, so the first new Log Database uses Order `0`.

```json
{
  "Configurations": [
    {
      "CustomPathData": "K:\\MSSQLSERVER\\DATA\\",
      "CustomPathImagedata": "L:\\MSSQLSERVER\\DATA\\",
      "CustomPathIndex": "M:\\MSSQLSERVER\\DATA\\",
      "DefaultPath": "N:\\MSSQLSERVER\\DATA\\",
      "DefaultPathLog": "N:\\MSSQLSERVER\\LOG\\",
      "Order": 0
    },
    {
      "CustomPathData": "M:\\MSSQLSERVER\\DATA\\",
      "CustomPathImagedata": "K:\\MSSQLSERVER\\DATA\\",
      "CustomPathIndex": "L:\\MSSQLSERVER\\DATA\\",
      "DefaultPath": "N:\\MSSQLSERVER\\DATA\\",
      "DefaultPathLog": "N:\\MSSQLSERVER\\LOG\\",
      "Order": 1
    },
    {
      "CustomPathData": "L:\\MSSQLSERVER\\DATA\\",
      "CustomPathImagedata": "M:\\MSSQLSERVER\\DATA\\",
      "CustomPathIndex": "K:\\MSSQLSERVER\\DATA\\",
      "DefaultPath": "N:\\MSSQLSERVER\\DATA\\",
      "DefaultPathLog": "N:\\MSSQLSERVER\\LOG\\",
      "Order": 2
    }
  ],
  "LastOrderDeployed": 2
}
```

![Edit page of the LogLocations System Parameter with Save in the page toolbar, the one-disk example on H:, the whole JSON visible, Json model is valid, Data type json, and the Save, Save and close, and Cancel buttons (7.12)][2]  
*The one-disk example entered in the Web Client: it overrides the SQL Server default locations for new Log Databases.*  

## :fa-lightbulb: Choosing a Value

* Leave it empty when the SQL Server default locations are fine. To go back to them later, clear **Value** and click **Save**; an empty value shows no JSON check.
* Create the folders on the SQL Server host first, and make sure the SQL Server service account can write to them.
* Agree on the disk layout with your DBA; see [SQL Server Sysadmin Requirements][] for coordinating file locations with DBA policy.
* Size each disk for at least one full Log Database ([SizeToSplitDatabaseOn][]).

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

* :fa-database: [Log Databases][]  
* :fa-list: [Manage Log Databases][]  
* :fa-pen-to-square: [Manage System Parameters][]  

## :fa-link-horizontal: Related Topics

* :fa-sort-size-up-alt: [SizeToSplitDatabaseOn][]  
* :fa-calendar-day: [DaysToSplitDatabaseOn][]  
* :fa-database: [LogDatabaseName][]  
* :fa-life-ring: [LogDatabaseRecovery][]  
* :fa-user-secret: [LogAccessRoles][]  
* :fa-users-class: [LogServiceUsers][]  
* :fa-server: [AvailabilityGroupBackupPath][]  
* :fa-tools: [DatabaseMaintenance][]  
* :fa-hard-drive: [Logging Service][]  
* :fa-sliders: [System Parameters][]  
* [Migrating v6 to v7 on New Hardware][New Hardware]  

[1]:{ndm}/Documentation%20Pictures/IM/CoreServices/ConfigurationDatabase/SQLServerDatabaseDefaultLocations.png
[2]:{ndm}/Documentation%20Pictures/IM/CoreServices/ConfigurationDatabase/SystemParameters/LogLocations.png

[AvailabilityGroupBackupPath]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/AvailabilityGroupBackupPath.md
[DatabaseMaintenance]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DatabaseMaintenance.md
[DaysToSplitDatabaseOn]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/DaysToSplitDatabaseOn.md
[Hero]:{ndm}/Documentation%20Pictures/IM/WebClient/Admin/Settings/SP/SystemParameters_LogLocations.gif
[How a new Log Database is created]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SizeToSplitDatabaseOn.md#how-a-new-log-database-is-created
[Log Databases]:{ndr}/Core%20Services/Log%20Databases/Overview.md
[LogAccessRoles]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogAccessRoles.md
[LogDatabaseName]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogDatabaseName.md
[LogDatabaseRecovery]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogDatabaseRecovery.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[LogServiceUsers]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogServiceUsers.md
[Manage Log Databases]:{ndr}/Administration/5.%20Settings/2.%20Log%20Databases/Overview.md
[Manage System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Manage%20System%20Parameters.md
[New Hardware]:{ndr}/Install%20and%20Update/Getting%20started/Version%206/Migrating%20v6%20to%20v7%20on%20New%20Hardware.md
[SizeToSplitDatabaseOn]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/SizeToSplitDatabaseOn.md
[SQL Server Sysadmin Requirements]:{ndr}/Install%20and%20Update/Troubleshooting/SQL%20Server/SQL%20Server%20Sysadmin%20Requirements.md
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md