This article will detail configuration of the Logship database.
The database is the backbone of any logship deployment. Configuration is specified between the database and backend sections, each providing configurable services with a wide range of capabilities.
Specifies the log level for Microsoft.Hosting.Lifetime.
agent
Property
Type
Required
Description
udpMetricsEndpoint
String
Yes
Specifies the UDP metrics endpoint.
database
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the database.
master
Boolean
Yes
Enables or disables the master database.
endpoints
Object
Yes
Defines endpoints for worker and master.
services
Object
Yes
Defines various database services.
endpoints
worker
Value
Type
Required
Description
String[]
Yes
Specifies the worker endpoints.
master
Value
Type
Required
Description
String[]
Yes
Specifies the master endpoints.
services
keyvalue
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the keyvalue service.
dataPath
String
Yes
Specifies the data path for keyvalue service.
transactionManager
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the transaction manager service.
transactionLog
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the transaction log service.
disk
Object
Yes
Defines disk settings for the transaction log service.
memory
Object
Yes
Defines memory settings for the transaction log service.
disk
Property
Type
Required
Description
enable
Boolean
No
Enables or disables disk storage for the transaction log.
path
String
Yes
Specifies the path for disk storage of the transaction log.
memory
Property
Type
Required
Description
enable
Boolean
No
Enables or disables memory storage for the transaction log.
gateway
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the gateway service.
partitionManager
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the partition manager service.
backend
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the backend service.
endpoints
Object
Yes
Defines endpoints for worker and master.
database
Object
Yes
Defines database settings for worker and master.
services
Object
Yes
Defines various backend services.
master
Boolean
Yes
Enables or disables the master backend service.
endpoints
worker
Value
Type
Required
Description
String[]
Yes
Specifies the worker endpoints.
master
Value
Type
Required
Description
String[]
Yes
Specifies the master endpoints.
database
worker
Value
Type
Required
Description
String[]
Yes
Specifies the worker database endpoint.
master
Value
Type
Required
Description
String[]
Yes
Specifies the master database endpoint.
services
databaseService
Backing metadata store for accounts, dashboards, alerts, and other relational state.
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the database service.
sqlite
Object
Yes
SQLite backing-store settings.
sqlite
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the SQLite backing store.
fileName
String
Yes
SQLite database file name (under the data root).
schemaManager
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the schema manager.
configService
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the config service.
inflowService
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the inflow service.
collectorService
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the collector service.
tempPath
String
Yes
Specifies the temporary path for the collector service.
searchExecutorService
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the search executor service.
dataPath
String
Yes
Specifies the data path for the search executor service.
minimumFreeSpaceBytes
Number
Yes
Specifies the minimum free space in bytes for the search executor service.
minimumFreeSpacePercentage
Number
Yes
Specifies the minimum free space percentage for the search executor service.
searchQueryService
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the search query service.
accountsService
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the accounts service.
jwt
Object
Yes
Defines JWT settings for the accounts service.
oauth
Object
Yes
Defines OAuth settings for the accounts service.
jwt
Property
Type
Required
Description
enable
Boolean
No
Enables or disables JWT for the accounts service.
issuer
String
Yes
Specifies the issuer for JWT tokens.
audience
String
Yes
Specifies the audience for JWT tokens.
signingKey
String
Yes
Specifies the signing key for JWT tokens.
oauth
All identity-provider connection details (client id, authority, endpoints, issuers, audiences) live on each entry of providers[] — see providers[] below. The oauth object itself holds only the cross-provider settings:
Property
Type
Required
Description
enable
Boolean
No
Enables OAuth/OIDC sign-in for the accounts service.
providers
Object[]
Yes
One or more OIDC providers. At least one must have enable: true.
createDefaultUser
Boolean
No
Auto-provision a Logship user when the token does not match one.
defaultUserAccount
String
No
Account id assigned to auto-provisioned users.
requireVerifiedEmail
Boolean
No
Reject tokens that do not assert a verified email. Defaults to true.
emailVerifiedClaimType
String
No
Claim that asserts the email is verified. Defaults to email_verified.
userIdClaimType
String
No
Claim used as the external subject identifier. Defaults to sub.
firstNameClaimType
String
No
Claim used for the user's first name. Defaults to given_name.
lastNameClaimType
String
No
Claim used for the user's last name. Defaults to family_name.
nickNameClaimType
String
No
Claim used for the user's nickname/display handle. Defaults to nickname.
emailClaimType
String
No
Claim used to match or create the Logship username.
claimMappings
Object[]
No
Rules granting Logship permissions based on token claims.
Logship only enables the OAuth bearer scheme when oauth.enable is true. Each enabled provider is exposed through /auth/oauth, rendered as a separate login option in the frontend, and accepted by the backend bearer auth pipeline.
requireVerifiedEmail defaults to true: Logship rejects any token whose emailVerifiedClaimType claim is missing or not true. This prevents account takeover when an IdP issues a token with an unverified, user-settable email/username that collides with an existing Logship user. Only set it to false when the IdP guarantees the identity claim out-of-band.
A plain OAuth 2.0 provider that is not OIDC cannot be used directly. Logship validates an RSA-signed JWT discovered via metadataAddress and requires a verified-email claim. To sign in with such a provider, front it with an OIDC broker (e.g. Keycloak or Dex) and point Logship at the broker.
When a token is accepted, Logship resolves the user from the configured emailClaimType. If the user already exists, Logship signs that user in. If the user does not exist and createDefaultUser is true, Logship creates the user and adds them to defaultUserAccount with a least-privileged Logship.Data.Viewer account permission.
claimMappings[]
Each mapping grants a set of Logship permissions when a token carries a matching claim value. On every login, Logship recomputes the set of granted permissions and syncs the user's global permissions to match: permissions listed in any mapping are considered "managed by SSO" and are added when a rule matches, removed when no rule matches. Permissions not referenced by any mapping are left alone, so permissions assigned through the admin UI are preserved.
Property
Type
Required
Description
claimType
String
Yes
JWT claim to inspect (e.g. email, groups, roles).
values
String[]
Yes
Claim values that trigger this mapping. Comparison is case-insensitive.
permissions
String[]
Yes
Logship permission names to grant. Must be entries from AuthPermissions.
Permission names must match an entry in Logship's AuthPermissions table (Logship.Global.Admin, Logship.Account.Admin, Logship.Data.Viewer, etc.). Only global-scope permissions (like Logship.Global.Admin) take effect through claim mappings — account-scoped permissions are managed per-account.
providers[]
Use providers when you need multiple SSO or need to accept tokens from more than one OIDC identity provider. Claim-to-role mapping remains shared across all providers. Each provider is disabled by default, so set enable to true for every provider you want Logship to expose and accept.
Property
Type
Required
Description
enable
Boolean
No
Explicitly enables this provider. Defaults to false.
id
String
Yes
Stable identifier for the provider. Used by the frontend redirect flow.
displayName
String
No
Friendly label shown on the login button. Defaults to clientId/id.
clientId
String
Yes
OIDC client id Logship expects in the token audience.
scope
String
Yes
Scope string returned to the frontend for PKCE sign-in.
metadataAddress
String
Yes
OIDC discovery document URL.
authority
String
Yes
Issuer/authority URL for the identity provider.
tokenEndpoint
String
Yes
Token endpoint exposed to the frontend.
authorizeEndpoint
String
Yes
Authorization endpoint exposed to the frontend.
deviceEndpoint
String
Yes
Device authorization endpoint for device code flow clients.
requireHttpsMetadata
Boolean
No
Require HTTPS for discovery and metadata requests.
Allow the redirect URI used by your Logship frontend, including /login/oauth/redirect.
Ensure the issued token includes sub, email, given_name, family_name, and preferred_username claims, or adjust the claim mapping fields above to match your provider.
If you want to grant Logship permissions by group membership, add an oidc-group-membership-mapper to the client (token claim name groups, include in access token) so the access token carries a groups claim you can reference in claimMappings.
messengerService
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the messenger service.
dashboardService
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the dashboard service.
evaluatorManagerService
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the evaluator manager service.
evaluatorRunnerService
Property
Type
Required
Description
enable
Boolean
No
Enables or disables the evaluator runner service.
setupService
The setup service can optionally provision accounts and users on startup (useful for local/dev and automation).
Property
Type
Required
Description
enable
Boolean
Yes
Enables or disables the setup service.
provision
Boolean
Yes
When true, provisions configured accounts/users on startup.
accounts
Object[]
No
Accounts to create/ensure exist (when provision: true).
users
Object[]
No
Users to create/ensure exist (when provision: true).