AI agents: use the documentation index at llms.txt to locate machine-readable pages. This section is indexed by https://docs.particular.net/servicecontrol/llms.txt. The markdown version of this page is served as plain text. An MCP server at /mcp serves the same content via the search_docs and read_doc tools; it is read-only and needs no credentials. Markdown versions of documentation pages are available by appending .md to the page URL. Directory URLs use index.md. They are served as text/plain because some retrieval backends reject text/markdown.

Audit Instance Configuration Settings

ServiceControl Audit instance can be configured using environment variables and/or the ServiceControl.Audit.exe.config file. Configuration settings provided using environment variables take precedence over the application configuration file entries.

When used, the ServiceControl Management utility (SCMU) enables controlling a subset of configuration settings that are read from and written to the application configuration file.

Locating the configuration file using SCMU

image

Host settings

The following documents should be reviewed prior to modifying configuration settings:

ServiceControl.Audit/InstanceName

The name to be used by the audit instance and the name of the input queue.

ContextName
Environment variableSERVICECONTROL_AUDIT_INSTANCENAME
App config keyServiceControl.Audit/InstanceName
SCMU fieldInstance/Queue Name
TypeDefault value
stringParticular.ServiceControl.Audit

ServiceControl.Audit/HostName

The hostname to bind the embedded HTTP API server to; modify this setting to bind to a specific hostname, eg. sc.mydomain.com and make the machine remotely accessible.

This field can also contain a * as a wildcard to allow remote connections that use any hostname.

ContextName
Environment variableSERVICECONTROL_AUDIT_HOSTNAME
App config keyServiceControl.Audit/HostName
SCMU fieldHOST NAME
TypeDefault value
stringlocalhost

ServiceControl.Audit/Port

The port to bind the embedded HTTP API server.

ContextName
Environment variableSERVICECONTROL_AUDIT_PORT
App config keyServiceControl.Audit/Port
SCMU fieldPORT NUMBER
TypeDefault value
int44444

ServiceControl.Audit/VirtualDirectory

The virtual directory to bind the embedded HTTP server to; modify this setting to bind to a specific virtual directory.

ContextName
Environment variableSERVICECONTROL_AUDIT_VIRTUALDIRECTORY
App config keyServiceControl.Audit/VirtualDirectory
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/ShutdownTimeout

Added in version 6.5.0

The maximum allowed time for the process to gracefully complete the shutdown after which the process will try to terminate.

ContextName
Environment variableSERVICECONTROL_AUDIT_SHUTDOWNTIMEOUT
App config keyServiceControl.Audit/ShutdownTimeout
SCMU fieldN/A
Environment/Installation typeTypeDefault value
ContainersTimeSpan00:00:05 (5 seconds)
Installation via PowerShell (on Windows)TimeSpan00:02:00 (2 minutes)
Installation via ServiceControl Management Utility (SCMU) (on Windows)TimeSpan00:02:00 (2 minutes)

Authentication

These settings configure authentication using OAuth 2.0 and OpenID Connect. Refer to the hosting and security guide or authentication configuration examples for additional information.

ServiceControl.Audit/Authentication.Enabled

Added in version 6.11.0

Enables or disables authentication. This is a Global switch and all other authentication settings are ignored unless this is true.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUTHENTICATION_ENABLED
App config keyServiceControl.Audit/Authentication.Enabled
SCMU fieldN/A
TypeDefault value
boolfalse

ServiceControl.Audit/Authentication.Authority

Added in version 6.11.0

The URL of the OpenID Connect authority (identity provider) used to authenticate tokens.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUTHENTICATION_AUTHORITY
App config keyServiceControl.Audit/Authentication.Authority
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/Authentication.Audience

Added in version 6.11.0

The expected audience value in the JWT token, typically the application ID or URI of the API.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUTHENTICATION_AUDIENCE
App config keyServiceControl.Audit/Authentication.Audience
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/Authentication.ValidateIssuer

Added in version 6.11.0

Controls whether the token issuer is validated against the authority.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUTHENTICATION_VALIDATEISSUER
App config keyServiceControl.Audit/Authentication.ValidateIssuer
SCMU fieldN/A
TypeDefault value
booltrue

ServiceControl.Audit/Authentication.ValidateAudience

Added in version 6.11.0

Controls whether the token audience is validated.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUTHENTICATION_VALIDATEAUDIENCE
App config keyServiceControl.Audit/Authentication.ValidateAudience
SCMU fieldN/A
TypeDefault value
booltrue

ServiceControl.Audit/Authentication.ValidateLifetime

Added in version 6.11.0

Controls whether the token expiration is validated.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUTHENTICATION_VALIDATELIFETIME
App config keyServiceControl.Audit/Authentication.ValidateLifetime
SCMU fieldN/A
TypeDefault value
booltrue

ServiceControl.Audit/Authentication.ValidateIssuerSigningKey

Added in version 6.11.0

Controls whether the token signing key is validated.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUTHENTICATION_VALIDATEISSUERSIGNINGKEY
App config keyServiceControl.Audit/Authentication.ValidateIssuerSigningKey
SCMU fieldN/A
TypeDefault value
booltrue

ServiceControl.Audit/Authentication.RequireHttpsMetadata

Added in version 6.11.0

Controls whether HTTPS is required when retrieving metadata from the authority.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUTHENTICATION_REQUIREHTTPSMETADATA
App config keyServiceControl.Audit/Authentication.RequireHttpsMetadata
SCMU fieldN/A
TypeDefault value
booltrue

ServiceControl.Audit/Authentication.RoleBasedAuthorizationEnabled

Added in version 6.18.0

Enables role-based access control on the Audit instance. When false, every authenticated user is granted every permission. Requires Authentication.Enabled to be true; the instance refuses to start if this is enabled while authentication is disabled.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUTHENTICATION_ROLEBASEDAUTHORIZATIONENABLED
App config keyServiceControl.Audit/Authentication.RoleBasedAuthorizationEnabled
SCMU fieldN/A
TypeDefault value
boolfalse

ServiceControl.Audit/Authentication.RolesClaim

Added in version 6.18.0

The token claim from which user roles are read. Supports a flat claim name or a dotted path into a nested JSON object claim. See reading roles from the token.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUTHENTICATION_ROLESCLAIM
App config keyServiceControl.Audit/Authentication.RolesClaim
SCMU fieldN/A
TypeDefault value
stringroles

ServiceControl.Audit/Authentication.SubjectIdClaim

Added in version 6.18.0

The token claim used as the stable user identifier in the authorization audit log. Requests are rejected if this claim is missing from the token.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUTHENTICATION_SUBJECTIDCLAIM
App config keyServiceControl.Audit/Authentication.SubjectIdClaim
SCMU fieldN/A
TypeDefault value
stringsub

ServiceControl.Audit/Authentication.SubjectNameClaim

Added in version 6.18.0

The token claim used as the human-readable display name in the authorization audit log. Requests are rejected if this claim is missing from the token.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUTHENTICATION_SUBJECTNAMECLAIM
App config keyServiceControl.Audit/Authentication.SubjectNameClaim
SCMU fieldN/A
TypeDefault value
stringpreferred_username

TLS

These settings configure HTTPS. Refer to the hosting and security guide or TLS configuration examples for additional information.

ServiceControl.Audit/Https.Enabled

Added in version 6.11.0

Enables Kestrel HTTPS with a certificate.

ContextName
Environment variableSERVICECONTROL_AUDIT_HTTPS_ENABLED
App config keyServiceControl.Audit/Https.Enabled
SCMU fieldN/A
TypeDefault value
boolfalse

ServiceControl.Audit/Https.CertificatePath

Added in version 6.11.0

The path to the PFX or PEM certificate file.

ContextName
Environment variableSERVICECONTROL_AUDIT_HTTPS_CERTIFICATEPATH
App config keyServiceControl.Audit/Https.CertificatePath
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/Https.CertificatePassword

Added in version 6.11.0

The password for the certificate file, if required.

ContextName
Environment variableSERVICECONTROL_AUDIT_HTTPS_CERTIFICATEPASSWORD
App config keyServiceControl.Audit/Https.CertificatePassword
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/Https.RedirectHttpToHttps

Added in version 6.11.0

Redirects HTTP requests to HTTPS. This is intended for use with a reverse proxy that handles both HTTP and HTTPS traffic.

ContextName
Environment variableSERVICECONTROL_AUDIT_HTTPS_REDIRECTHTTPTOHTTPS
App config keyServiceControl.Audit/Https.RedirectHttpToHttps
SCMU fieldN/A
TypeDefault value
boolfalse

ServiceControl.Audit/Https.Port

Added in version 6.11.0

The HTTPS port to use in redirect URLs. Required when RedirectHttpToHttps is enabled in reverse proxy scenarios.

ContextName
Environment variableSERVICECONTROL_AUDIT_HTTPS_PORT
App config keyServiceControl.Audit/Https.Port
SCMU fieldN/A
TypeDefault value
intNone

ServiceControl.Audit/Https.EnableHsts

Added in version 6.11.0

Enables HTTP Strict Transport Security (HSTS).

ContextName
Environment variableSERVICECONTROL_AUDIT_HTTPS_ENABLEHSTS
App config keyServiceControl.Audit/Https.EnableHsts
SCMU fieldN/A
TypeDefault value
boolfalse

ServiceControl.Audit/Https.HstsMaxAgeSeconds

Added in version 6.11.0

The max-age value in seconds for the HSTS header.

ContextName
Environment variableSERVICECONTROL_AUDIT_HTTPS_HSTSMAXAGESECONDS
App config keyServiceControl.Audit/Https.HstsMaxAgeSeconds
SCMU fieldN/A
TypeDefault value
int31536000 (1 year)

ServiceControl.Audit/Https.HstsIncludeSubDomains

Added in version 6.11.0

Includes subdomains in the HSTS policy.

ContextName
Environment variableSERVICECONTROL_AUDIT_HTTPS_HSTSINCLUDESUBDOMAINS
App config keyServiceControl.Audit/Https.HstsIncludeSubDomains
SCMU fieldN/A
TypeDefault value
boolfalse

Forwarded headers

These settings configure forwarded headers for reverse proxy scenarios. Refer to the hosting and security guide, or forward headers configuration examples for additional information.

ServiceControl.Audit/ForwardedHeaders.Enabled

Added in version 6.11.0

Enables processing of forwarded headers (X-Forwarded-For, X-Forwarded-Proto, etc.).

ContextName
Environment variableSERVICECONTROL_AUDIT_FORWARDEDHEADERS_ENABLED
App config keyServiceControl.Audit/ForwardedHeaders.Enabled
SCMU fieldN/A
TypeDefault value
booltrue

ServiceControl.Audit/ForwardedHeaders.TrustAllProxies

Added in version 6.11.0

Trusts forwarded headers from any source. Set to false when using KnownProxies or KnownNetworks.

ContextName
Environment variableSERVICECONTROL_AUDIT_FORWARDEDHEADERS_TRUSTALLPROXIES
App config keyServiceControl.Audit/ForwardedHeaders.TrustAllProxies
SCMU fieldN/A
TypeDefault value
booltrue

ServiceControl.Audit/ForwardedHeaders.KnownProxies

Added in version 6.11.0

A comma-separated list of trusted proxy IP addresses, e.g. 127.0.0.1

ContextName
Environment variableSERVICECONTROL_AUDIT_FORWARDEDHEADERS_KNOWNPROXIES
App config keyServiceControl.Audit/ForwardedHeaders.KnownProxies
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/ForwardedHeaders.KnownNetworks

Added in version 6.11.0

A comma-separated list of trusted CIDR network ranges, e.g. 10.0.0.0/8,172.16.0.0/12

ContextName
Environment variableSERVICECONTROL_AUDIT_FORWARDEDHEADERS_KNOWNNETWORKS
App config keyServiceControl.Audit/ForwardedHeaders.KnownNetworks
SCMU fieldN/A
TypeDefault value
stringNone

CORS

These settings configure Cross-Origin Resource Sharing (CORS). Refer to the hosting and security guide or cors configuration examples for additional information.

ServiceControl.Audit/Cors.AllowAnyOrigin

Added in version 6.11.0

Allows requests from any origin.

ContextName
Environment variableSERVICECONTROL_AUDIT_CORS_ALLOWANYORIGIN
App config keyServiceControl.Audit/Cors.AllowAnyOrigin
SCMU fieldN/A
TypeDefault value
booltrue

ServiceControl.Audit/Cors.AllowedOrigins

Added in version 6.11.0

A comma-separated list of allowed origins, e.g. https://servicepulse.example.com,https://admin.example.com

ContextName
Environment variableSERVICECONTROL_AUDIT_CORS_ALLOWEDORIGINS
App config keyServiceControl.Audit/Cors.AllowedOrigins
SCMU fieldN/A
TypeDefault value
stringNone

Storage

Each Audit instance stores its data in RavenDB, SQL Server, or PostgreSQL. See the storage overview to choose a storage type. The settings for SQL Server and PostgreSQL are in SQL Server and PostgreSQL storage and Message body storage. The settings for RavenDB are in RavenDB storage.

ServiceControl.Audit/StorageType

Added in version 7.0.0

The storage implementation used by the Audit instance. This setting is required; an instance without it does not start.

ContextName
Environment variableSERVICECONTROL_AUDIT_STORAGETYPE
App config keyServiceControl.Audit/StorageType
SCMU fieldSTORAGE TYPE
TypeDefault value
stringNone (required)

Valid values are RavenDB, SQLServer, and PostgreSQL. To choose where message bodies are stored with SQL Server or PostgreSQL storage, use ServiceControl.Audit/MessageBody/StorageType.

SQL Server and PostgreSQL storage

SQL Server and PostgreSQL storage are available from ServiceControl 7. These settings apply when ServiceControl.Audit/StorageType is SQLServer or PostgreSQL. Prepare the database first; see SQL Server storage or PostgreSQL storage. SQL Server must have Full-Text Search installed. These storage types also need the message body storage settings.

ServiceControl.Audit/Database/ConnectionString

Added in version 7.0.0

The connection string for the SQL Server or PostgreSQL database. The database must already exist.

ContextName
Environment variableSERVICECONTROL_AUDIT_DATABASE_CONNECTIONSTRING
App config keyServiceControl.Audit/Database/ConnectionString
SCMU fieldDATABASE CONNECTION STRING
TypeDefault value
stringNone (required for SQL Server and PostgreSQL storage)

ServiceControl.Audit/Database/Schema

Added in version 7.0.0

The schema that contains the Audit instance tables. If the schema does not exist, setup creates it, which requires permission to create schemas. Changing this setting does not move existing data; an instance that already has data must keep using the schema that contains it.

ContextName
Environment variableSERVICECONTROL_AUDIT_DATABASE_SCHEMA
App config keyServiceControl.Audit/Database/Schema
SCMU fieldN/A
TypeDefault value
stringsc_audit

ServiceControl.Audit/Database/CommandTimeout

Added in version 7.0.0

The command timeout, in seconds, for SQL database operations.

ContextName
Environment variableSERVICECONTROL_AUDIT_DATABASE_COMMANDTIMEOUT
App config keyServiceControl.Audit/Database/CommandTimeout
SCMU fieldN/A
TypeDefault value
int30

Message body storage

SQL Server and PostgreSQL storage keep message bodies that are not text, or larger than ServiceControl.Audit/MaxBodySizeToStore, in an external message body store: the file system, Azure Blob Storage, or Amazon S3. RavenDB storage does not use these settings.

The ServiceControl Management Utility configures file system storage, in the MESSAGE BODY PATH. The PowerShell module also supports Azure Blob Storage and Amazon S3. To change the store later, change these settings in the instance's configuration file, starting with ServiceControl.Audit/MessageBody/StorageType. Changing the store does not move existing message bodies.

ServiceControl.Audit/MessageBody/StorageType

Added in version 7.0.0

The external storage provider used for message bodies.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_STORAGETYPE
App config keyServiceControl.Audit/MessageBody/StorageType
SCMU fieldN/A
TypeDefault value
stringNone

Valid values are FileSystem, AzureBlob, and S3. The ServiceControl Management Utility sets this to FileSystem. The PowerShell module sets it from -MessageBodyStorageType, which defaults to FileSystem.

When this setting is not set, an Audit instance using SQL Server or PostgreSQL storage has no external body store. It still starts, but it does not store bodies that are not text or that are larger than ServiceControl.Audit/MaxBodySizeToStore, and those bodies cannot be viewed in ServicePulse. Set it for every SQL-backed Audit instance.

ServiceControl.Audit/MessageBody/FileSystem/StoragePath

Added in version 7.0.0

The directory where message bodies are stored when MessageBody/StorageType is FileSystem. Use a separate directory for each instance. The exception is Audit instances that share a database, which must all use the same directory.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_FILESYSTEM_STORAGEPATH
App config keyServiceControl.Audit/MessageBody/FileSystem/StoragePath
SCMU fieldMESSAGE BODY PATH
TypeDefault value
stringNone (required for file system storage)

The ServiceControl Management Utility suggests %ProgramData%\Particular\ServiceControl\<instance name>\MessageBodies. The PowerShell module sets this from -MessageBodyPath.

Exclude this directory from antivirus scans. See anti-virus checks.

ServiceControl.Audit/MessageBody/FileSystem/DataSpaceRemainingThreshold

Added in version 7.0.0

The percentage of disk space that must remain available on the drive containing the message body storage directory. The value must be between 0 and 100.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_FILESYSTEM_DATASPACEREMAININGTHRESHOLD
App config keyServiceControl.Audit/MessageBody/FileSystem/DataSpaceRemainingThreshold
SCMU fieldN/A
TypeDefault value
int15 (percent)

ServiceControl.Audit/MessageBody/Azure/ConnectionString

Added in version 7.0.0

The Azure Storage connection string used to authenticate with shared key or shared access signature (SAS) credentials when MessageBody/StorageType is AzureBlob. Configure either this setting or ServiceControl.Audit/MessageBody/Azure/ServiceUri, but not both.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_AZURE_CONNECTIONSTRING
App config keyServiceControl.Audit/MessageBody/Azure/ConnectionString
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/MessageBody/Azure/ServiceUri

Added in version 7.0.0

The Azure Blob Storage service URI used with managed identity when MessageBody/StorageType is AzureBlob. Configure either this setting or ServiceControl.Audit/MessageBody/Azure/ConnectionString, but not both.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_AZURE_SERVICEURI
App config keyServiceControl.Audit/MessageBody/Azure/ServiceUri
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/MessageBody/Azure/ManagedIdentityClientId

Added in version 7.0.0

The client ID of the user-assigned managed identity used to access Azure Blob Storage. When this setting is not specified, the default Azure credential chain is used.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_AZURE_MANAGEDIDENTITYCLIENTID
App config keyServiceControl.Audit/MessageBody/Azure/ManagedIdentityClientId
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/MessageBody/Azure/AuthorityHost

Added in version 7.0.0

The Microsoft Entra authority host URI used for managed identity authentication in sovereign clouds. When this setting is not specified, the Azure SDK uses the AZURE_AUTHORITY_HOST environment variable or its default authority host.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_AZURE_AUTHORITYHOST
App config keyServiceControl.Audit/MessageBody/Azure/AuthorityHost
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/MessageBody/Azure/ContainerName

Added in version 7.0.0

The Azure Blob Storage container used to store message bodies. Every Audit instance has the same default, so set a different container name for each Audit instance that uses the same storage account. The exception is Audit instances that share a database, which must all use the same container.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_AZURE_CONTAINERNAME
App config keyServiceControl.Audit/MessageBody/Azure/ContainerName
SCMU fieldN/A
TypeDefault value
stringaudit-bodies

ServiceControl.Audit/MessageBody/S3/BucketName

Added in version 7.0.0

The Amazon S3 bucket used to store message bodies when MessageBody/StorageType is S3.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_S3_BUCKETNAME
App config keyServiceControl.Audit/MessageBody/S3/BucketName
SCMU fieldN/A
TypeDefault value
stringNone (required for S3 storage)

ServiceControl.Audit/MessageBody/S3/KeyPrefix

Added in version 7.0.0

The prefix applied to message body object keys in Amazon S3. Every Audit instance has the same default, so set a different key prefix for each Audit instance that uses the same bucket. The exception is Audit instances that share a database, which must all use the same bucket and key prefix.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_S3_KEYPREFIX
App config keyServiceControl.Audit/MessageBody/S3/KeyPrefix
SCMU fieldN/A
TypeDefault value
stringaudit-bodies/

ServiceControl.Audit/MessageBody/S3/Region

Added in version 7.0.0

The AWS region containing the S3 bucket. When this setting is not specified, the AWS SDK resolves the region from its default configuration chain.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_S3_REGION
App config keyServiceControl.Audit/MessageBody/S3/Region
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/MessageBody/S3/ServiceUrl

Added in version 7.0.0

The service URL for an S3-compatible storage provider. Leave this setting empty when using Amazon S3.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_S3_SERVICEURL
App config keyServiceControl.Audit/MessageBody/S3/ServiceUrl
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/MessageBody/S3/AccessKeyId

Added in version 7.0.0

The access key ID used to authenticate with S3. Configure this setting together with ServiceControl.Audit/MessageBody/S3/SecretAccessKey, or leave both empty to use the AWS SDK default credential chain.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_S3_ACCESSKEYID
App config keyServiceControl.Audit/MessageBody/S3/AccessKeyId
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/MessageBody/S3/SecretAccessKey

Added in version 7.0.0

The secret access key used to authenticate with S3. Configure this setting together with ServiceControl.Audit/MessageBody/S3/AccessKeyId, or leave both empty to use the AWS SDK default credential chain.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_S3_SECRETACCESSKEY
App config keyServiceControl.Audit/MessageBody/S3/SecretAccessKey
SCMU fieldN/A
TypeDefault value
stringNone

ServiceControl.Audit/MessageBody/MinCompressionSize

Added in version 7.0.0

The minimum message body size, in bytes, at which external message bodies are compressed.

ContextName
Environment variableSERVICECONTROL_AUDIT_MESSAGEBODY_MINCOMPRESSIONSIZE
App config keyServiceControl.Audit/MessageBody/MinCompressionSize
SCMU fieldN/A
TypeDefault value
int4096 (4 KB)

RavenDB storage

These settings apply only when ServiceControl.Audit/StorageType is RavenDB, and to versions before 7, which always use RavenDB. DbPath and RavenDBLogLevel configure the embedded database and are not valid for instances hosted in a container.

ServiceControl.Audit/DbPath

Applies only to RavenDB storage

The path where the internal RavenDB is located.

ContextName
Environment variableSERVICECONTROL_AUDIT_DBPATH
App config keyServiceControl.Audit/DbPath
SCMU fieldDATABASE PATH
TypeDefault value
string%SYSTEMDRIVE%\ProgramData\Particular\ServiceControl\<instance_name>\DB

ServiceControl.Audit/DatabaseMaintenancePort

Applies only to RavenDB storage

The port to expose the RavenDB database.

ContextName
Environment variableSERVICECONTROL_AUDIT_DATABASEMAINTENANCEPORT
App config keyServiceControl.Audit/DatabaseMaintenancePort
SCMU fieldDATABASE MAINTENANCE PORT NUMBER (1 - 49151)
TypeDefault value
int44445

ServiceControl.Audit/MaintenanceMode

Applies only to RavenDB storage

Run a RavenDB-backed ServiceControl audit instance in maintenance mode to perform database maintenance.

ContextName
Environment variableSERVICECONTROL_AUDIT_MAINTENANCEMODE
App config keyServiceControl.Audit/MaintenanceMode
SCMU fieldN/A
TypeDefault value
booleanFalse

From version 7, maintenance mode is supported only with embedded RavenDB. An instance using external RavenDB, SQL Server, or PostgreSQL with this setting set to true does not start. To perform database maintenance, stop the ServiceControl instance and access the external database directly.

ServiceControl.Audit/RavenDBLogLevel

Applies only to RavenDB storage

Controls the LogLevel of the RavenDB logs.

ContextName
Environment variableSERVICECONTROL_AUDIT_RAVENDBLOGLEVEL
App config keyServiceControl.Audit/RavenDBLogLevel
SCMU fieldN/A
TypeDefault value
stringOperations

Valid settings are: None, Information, Operations.

ServiceControl.Audit/ExpirationProcessTimerInSeconds

Applies only to RavenDB storage

The number of seconds to wait between checking for expired messages.

ContextName
Environment variableSERVICECONTROL_AUDIT_EXPIRATIONPROCESSTIMERINSECONDS
App config keyServiceControl.Audit/ExpirationProcessTimerInSeconds
SCMU fieldN/A
TypeDefault value
int600 (10 minutes)

Valid range is 0 to 10800 (3 Hours).

Setting the value to 0 will disable the expiration process. This is not recommended and it is only provided for fault finding.

SQL Server and PostgreSQL storage check for expired messages once an hour, and the interval cannot be changed.

ServiceControl.Audit/EnableFullTextSearchOnBodies

Added in 4.17.0

Applies only to RavenDB storage

Use this setting to configure whether the bodies of processed messages should be full-text indexed for searching.

SQL Server and PostgreSQL storage always index message bodies for full-text search, regardless of this setting.

ContextName
Environment variableSERVICECONTROL_AUDIT_ENABLEFULLTEXTSEARCHONBODIES
App config keyServiceControl.Audit/EnableFullTextSearchOnBodies
SCMU fieldN/A
TypeDefault value
booltrue

ServiceControl.Audit/BulkInsertCommitTimeoutInSeconds

Applies only to RavenDB storage

Configures the maximum duration, in seconds, for processing a batch of audited messages.

ContextName
Environment variableSERVICECONTROL_AUDIT_BULKINSERTCOMMITTIMEOUTINSECONDS
App config keyServiceControl.Audit/BulkInsertCommitTimeoutInSeconds
SCMU fieldN/A
TypeDefault value
int60 (1 minute)

For SQL Server and PostgreSQL storage, see Database/CommandTimeout.

ServiceControl.Audit/DataSpaceRemainingThreshold

Applies only to RavenDB storage

The percentage threshold for the Message database storage space check. If the remaining hard drive space drops below this threshold (as a percentage of the total space on the drive) then the check will fail, alerting the user.

TypeDefault value
int20

ServiceControl.Audit/MinimumStorageLeftRequiredForIngestion

Applies only to RavenDB storage

The percentage threshold for the Critical message database storage space check. If the remaining hard drive space drops below this threshold (as a percentage of the total space on the drive), then the check will fail, alerting the user. The message ingestion will also be stopped to prevent data loss. Message ingestion will resume once more disk space is made available.

TypeDefault value
int5

SQL Server and PostgreSQL storage do not stop ingestion based on free disk space.

Logging

ServiceControl.Audit/LogPath

The path for the ServiceControl logs.

ContextName
Environment variableSERVICECONTROL_AUDIT_LOGPATH
App config keyServiceControl.Audit/LogPath
SCMU fieldLOG PATH
TypeDefault value
string%LOCALAPPDATA%\Particular\ServiceControl.Audit\logs

ServiceControl.Audit/LogLevel

Controls the LogLevel of the ServiceControl logs.

ContextName
Environment variableSERVICECONTROL_AUDIT_LOGLEVEL
App config keyServiceControl.Audit/LogLevel
SCMU fieldN/A
TypeDefault value
stringInfo

Valid settings are: Trace, Debug, Info, Warn, Error, Fatal, Off.

Recoverability

ServiceControl.Audit/TimeToRestartAuditIngestionAfterFailure

Controls the maximum time delay to wait before restarting the audit ingestion pipeline after detecting a connection problem.

ContextName
Environment variableSERVICECONTROL_AUDIT_TIMETORESTARTAUDITINGESTIONAFTERFAILURE
App config keyServiceControl.Audit/TimeToRestartAuditIngestionAfterFailure
SCMU fieldN/A
TypeDefault value
timespan60 seconds

Valid settings are between 5 seconds and 1 hour.

ServiceControl.Audit/IngestAuditMessages

Set to false to disable ingesting new audit messages. Useful in some upgrade scenarios.

ContextName
Environment variableSERVICECONTROL_AUDIT_INGESTAUDITMESSAGES
App config keyServiceControl.Audit/IngestAuditMessages
SCMU fieldN/A
TypeDefault value
booltrue

ServiceControl/IngestAuditMessages

Set to false to disable ingesting new audit messages. Useful in some upgrade scenarios.

ContextName
Environment variableSERVICECONTROL_INGESTAUDITMESSAGES
App config keyServiceControl/IngestAuditMessages
SCMU fieldN/A
TypeDefault value
booltrue

Data retention

ServiceControl.Audit/AuditRetentionPeriod

The grace period to keep an audit message before it is deleted.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUDITRETENTIONPERIOD
App config keyServiceControl.Audit/AuditRetentionPeriod
SCMU fieldAUDIT RETENTION PERIOD
TypeDefault value
timespanNone (required)

Valid range for this setting is from 1 hour to 365 days.

Performance tuning

ServiceControl.Audit/MaxBodySizeToStore

A size limit, in bytes, for message bodies. Its effect depends on the storage type:

StorageEffect
RavenDBThe largest message body that the Audit instance stores. Larger bodies cannot be viewed in ServicePulse.
SQL Server or PostgreSQLThe largest text message body that is stored inline in the database. Larger text bodies, and bodies that are not text, are stored in the external message body store and can be viewed in ServicePulse. A larger text body also keeps its first MaxBodySizeToStore bytes in the database for full-text search. See what is stored where.
ContextName
Environment variableSERVICECONTROL_AUDIT_MAXBODYSIZETOSTORE
App config keyServiceControl.Audit/MaxBodySizeToStore
SCMU fieldN/A
TypeDefault value
int102400 (100 KB)

ServiceControl.Audit/MaximumConcurrencyLevel

The maximum number of messages that can be concurrently pulled from the message transport.

It is important that the maximum concurrency level be incremented only if there are no verified bottlenecks in CPU, RAM, network I/O, storage I/O, and storage index lag. Higher numbers can result in faster audit message ingestion, but also consume more server resources, and can increase costs in the case of cloud transports that have associated per-operation costs. In some cases, the ingestion rate can be too high and the underlying database cannot keep up with indexing the new messages. In this case, consider lowering the maximum concurrency level to a value that still allows a suitable ingestion rate while easing the pressure on the database.

Cloud transports with higher latency can benefit from higher concurrency values, but costs can increase as well. Local transports using fast local SSD drives and low latency do not benefit as much.

ContextName
Environment variableSERVICECONTROL_AUDIT_MAXIMUMCONCURRENCYLEVEL
App config keyServiceControl.Audit/MaximumConcurrencyLevel
SCMU fieldN/A
TypeDefault value
int32 in 4.12.0
10 in earlier versions

ServiceControl.Audit/AuditIngestionBatchSize

Added in version 7.0.0

The maximum number of messages in each ingestion batch. If not set, the default is MaximumConcurrencyLevel divided by the resolved number of writers.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUDITINGESTIONBATCHSIZE
App config keyServiceControl.Audit/AuditIngestionBatchSize
SCMU fieldN/A
TypeDefault value
intMaximumConcurrencyLevel divided by the resolved number of writers

The allowed range is 1 to 1000. A value that is set explicitly is used as configured. A batch larger than MaximumConcurrencyLevel can never fill because messages occupy receive slots until their batch is stored. Larger batches use more memory.

ServiceControl.Audit/AuditIngestionMaxParallelWriters

Added in version 7.0.0

The maximum number of batches that are written to storage in parallel.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUDITINGESTIONMAXPARALLELWRITERS
App config keyServiceControl.Audit/AuditIngestionMaxParallelWriters
SCMU fieldN/A
TypeDefault value
int2

The allowed range is 1 to 16. More writers increase CPU, memory, and storage load; increase the value only if there are no verified bottlenecks.

ServiceControl.Audit/AuditIngestionBatchTimeout

Added in version 7.0.0

The maximum time to wait for a batch to fill before it is written. Full batches are written immediately; a partial batch can wait up to this time. The default can add up to 100 milliseconds of latency at low message volumes.

ContextName
Environment variableSERVICECONTROL_AUDIT_AUDITINGESTIONBATCHTIMEOUT
App config keyServiceControl.Audit/AuditIngestionBatchTimeout
SCMU fieldN/A
TypeDefault value
timespan00:00:00.100

The allowed range is 00:00:00 to 00:00:05. An explicit value of 00:00:00 is preserved, so partial batches are not delayed.

ServiceControl.Audit/QueryTimeoutInSeconds

Added in version 6.20.0

Configures the maximum duration, in seconds, that an audit message query (for example, a message search or a conversation lookup issued by ServicePulse) is allowed to run before it is cancelled. This prevents long-running queries from consuming resources. With RavenDB, queries over very large data sets can consume large amounts of temporary disk space. Values larger than one hour fall back to the default.

A query that runs out of its allowed time is answered with HTTP status 504 Gateway Timeout and a problem details body that names this setting. The error instance treats that answer as a missing instance rather than as an instance with no data. The maximum duration the error instance will wait for an audit instance is bounded by its own ServiceControl/QueryTimeoutInSeconds, independently of this value.

ContextName
Environment variableSERVICECONTROL_AUDIT_QUERYTIMEOUTINSECONDS
App config keyServiceControl.Audit/QueryTimeoutInSeconds
SCMU fieldN/A
TypeDefault value
int60 (1 minute)

Transport

ServiceControl.Audit/TransportType

The transport type to run ServiceControl with.

ContextName
Environment variableSERVICECONTROL_AUDIT_TRANSPORTTYPE or TRANSPORTTYPE
App config keyServiceControl.Audit/TransportType
SCMU fieldTRANSPORT
TypeDefault value
stringMSMQ

Valid values are documented in the ServiceControl transport configuration documentation.

NServiceBus/Transport

The connection string for the transport. This setting must be entered in the connectionStrings section of the configuration file when configured using the app config.

ContextName
Environment variableSERVICECONTROL_AUDIT_CONNECTIONSTRING OR CONNECTIONSTRING
App config keyNServiceBus/Transport in connectionStrings
SCMU fieldTRANSPORT CONNECTION STRING
TypeDefault value
stringNone

Valid values are documented in the ServiceControl transport configuration documentation.

ServiceBus/AuditQueue

The name of the audit queue to ingest messages from.

ContextName
Environment variableSERVICEBUS_AUDITQUEUE
App config keyServiceBus/AuditQueue
SCMU fieldAUDIT QUEUE NAME
TypeDefault value
stringaudit

ServiceControl.Audit/ForwardAuditMessages

Use this setting to configure whether processed audit messages are forwarded to another queue or not. This entry should be set to false if there is no external process reading messages from the ServiceBus/AuditLogQueue

ContextName
Environment variableSERVICECONTROL_AUDIT_FORWARDAUDITMESSAGES
App config keyServiceControl.Audit/ForwardAuditMessages
SCMU fieldForward audit messages?
TypeDefault value
boolfalse (Off)

ServiceBus/AuditLogQueue

The audit queue name to use for forwarding audit messages. This setting is ignored unless ServiceControl.Audit/ForwardAuditMessages is enabled.

ContextName
Environment variableSERVICEBUS_AUDITLOGQUEUE
App config keyServiceBus/AuditLogQueue
SCMU fieldAUDIT FORWARDING QUEUE NAME
TypeDefault value
string<AuditQueue>.log

ServiceControl.Audit/ServiceControlQueueAddress

The ServiceControl Error instance queue name to use to send plugin messages (e.g. Heartbeats, Custom Checks, Saga Audit, etc ).

ContextName
Environment variableSERVICECONTROL_AUDIT_SERVICECONTROLQUEUEADDRESS
App config keyServiceControl.Audit/ServiceControlQueueAddress
SCMU fieldN/A
TypeDefault value
stringParticular.ServiceControl