Observability settings

Logs

Logs settings

Disable health logs

Disable /health endpoint requests logging. Default value is false

IDobservability.disable-health-logs
TypeBool
Default valuefalse
Environment variableBOX_OBSERVABILITY_DISABLE_HEALTH_LOGS
Deprecated environment variablesBOX_LOGGING_DISABLE__HEALTH__LOGS
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadtrue — setting can be changed at runtime

Log file path

If provided, enables mode to pipe logs as JSON into the file by specified path.

If ElasticSearch URL is provided then the file is used as a fallback in case if ElasticSearch is not available.

IDobservability.log-file.path
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_LOG_FILE_PATH
Deprecated environment variablesAIDBOX_LOGS
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Logs max lines

Sets the limit of log records to push into the file When the limit is reached, the current log file is renamed with .old postfix and a new log file is created

IDobservability.log-file.max-lines
TypeInt
Default value10000
Environment variableBOX_OBSERVABILITY_LOG_FILE_MAX_LINES
Deprecated environment variablesAIDBOX_LOGS_MAX_LINES
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Logging SQL min duration

Threshold for logging only long queries. Analogous from PostgreSQL. Log only requests whose execution time exceeds the specified number of milliseconds.

IDobservability.sql.min-duration
TypeInt
Default value-1
Environment variableBOX_OBSERVABILITY_SQL_MIN_DURATION
Deprecated environment variablesBOX_LOGGING_SQL_MIN__DURATION
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Logging SQL max length

Max length of a query to be logged.

IDobservability.sql.max-length
TypeInt
Default value500
Environment variableBOX_OBSERVABILITY_SQL_MAX_LENGTH
Deprecated environment variablesBOX_LOGGING_SQL_MAX__LENGTH
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Metrics

Metrics settings

Metrics server port

Port on which Aidbox will expose metrics. To disable metrics server, leave this setting empty

IDobservability.metrics.server-port
TypeInt
Default value(no default)
Environment variableBOX_METRICS_PORT
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Enable Postgres metrics

Controls whether to provide metrics related to PostgreSQL

IDobservability.metrics.enable-postgres-metrics
TypeBool
Default valuetrue
Environment variableBOX_OBSERVABILITY_METRICS_ENABLE_POSTGRES_METRICS
Deprecated environment variablesBOX_METRICS_POSTGRES_ON
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Stdout

Stdout settings

Stdout log level

Controls stdout with specified logs level. Possible values: off, fatal, error, warn, info, debug, trace, all, true By setting one of these levels you would also get all the levels to the left. e.g. if you set log level to warn you would also get log events with fatal and error levels (off is excluded).

IDobservability.stdout.log-level
TypeEnum
Valuesoff
fatal
error
warn
info
debug
trace
all
true
Default value(no default)
Environment variableBOX_OBSERVABILITY_STDOUT_LOG_LEVEL
Deprecated environment variablesAIDBOX_STDOUT_JSON
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Pretty print log level

Controls pretty print of logs to stdout with specified level. Possible values: off, fatal, error, warn, info, debug, trace, all, true By setting one of these levels you would also get all the levels to the left. e.g. if you set log level to warn you would also get log events with fatal and error levels (off is excluded).

IDobservability.stdout.pretty-log-level
TypeEnum
Valuesoff
fatal
error
warn
info
debug
trace
all
true
Default valuewarn
Environment variableBOX_OBSERVABILITY_STDOUT_PRETTY_LOG_LEVEL
Deprecated environment variablesAIDBOX_STDOUT_PRETTY
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Google log level

Produces in Google Logging format with specified log level. Possible values: off, fatal, error, warn, info, debug, trace, all, true By setting one of these levels you would also get all the levels to the left. e.g. if you set log level to warn you would also get log events with fatal and error levels (off is excluded).

IDobservability.stdout.google-log-level
TypeEnum
Valuesoff
fatal
error
warn
info
debug
trace
all
true
Default value(no default)
Environment variableBOX_OBSERVABILITY_STDOUT_GOOGLE_LOG_LEVEL
Deprecated environment variablesAIDBOX_STDOUT_GOOGLE_JSON
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Loki

Grafana Loki settings

Loki URL

Loki URL to enable Aidbox logs uploading into Loki

IDobservability.loki-url
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_LOKI_URL
Deprecated environment variablesAIDBOX_LK_URL
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Loki batch size

Loki batch size for log uploading. Aidbox uploads logs when either at least specific observability.loki.batch-size collected or time passed from previous log uploading exceeds observability.loki.batch-timeout.

IDobservability.loki.batch-size
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_LOKI_BATCH_SIZE
Deprecated environment variablesAIDBOX_LK_BATCH_SIZE
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Loki batch timeout

How long to wait before uploading Aidbox uploads logs when either at least observability.loki.batch-size entries collected or time passed from previous log uploading exceeds observability.loki.batch-timeout.

IDobservability.loki.batch-timeout
TypeInt
Default value(no default)
Environment variableBOX_OBSERVABILITY_LOKI_BATCH_TIMEOUT
Deprecated environment variablesAIDBOX_LK_BATCH_TIMEOUT
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Loki stream

Stream refers to the labels or metadata associated with a log stream Is defined by a unique set of labels, which serve as the stream key. For example: {"box": "aidbox"}

IDobservability.loki.stream
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_LOKI_STREAM
Deprecated environment variablesAIDBOX_LK_STREAM
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Datadog

Datadog settings

Datadog API Key

Datadog API Key.

IDobservability.datadog.api-key
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_DATADOG_API_KEY
Deprecated environment variablesBOX_DD_API_KEY
Sensitivetrue — value will be masked in Admin UI
Set viaEnvironment variables
Hot reloadfalse — setting requires system restart

Datadog regional site

The regional site for a Datadog customer.

IDobservability.datadog.site
TypeEnum
Valuesdatadoghq.com
us3.datadoghq.com
us5.datadoghq.com
datadoghq.eu
ddog-gov.com
ap1.datadoghq.com
Default value(no default)
Environment variableBOX_OBSERVABILITY_DATADOG_SITE
Deprecated environment variablesBOX_DD_SITE
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Datadog log tags

Tags associated with your logs. Convenient for transferring the name of the environment. For example env:staging.

IDobservability.datadog.tags
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_DATADOG_TAGS
Deprecated environment variablesBOX_DD_TAGS
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Datadog log file path

Fallback file to write logs in if uploading to Datadog fails

IDobservability.datadog.logs
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_DATADOG_LOGS
Deprecated environment variablesAIDBOX_DD_LOGS
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Datadog log batch size

How many log entries to collect before uploading. Aidbox uploads logs when either at least specific observability.datadog.batch-size collected or time passed from previous log uploading exceeds observability.datadog.batch-timeout.

IDobservability.datadog.batch-size
TypeInt
Default value(no default)
Environment variableBOX_OBSERVABILITY_DATADOG_BATCH_SIZE
Deprecated environment variablesBOX_DD_BATCH_SIZE
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Datadog log batch timeout

How long to wait before uploading Aidbox uploads logs when either at least specific observability.datadog.batch-size collected or time passed from previous log uploading exceeds observability.datadog.batch-timeout.

IDobservability.datadog.batch-timeout
TypeInt
Default value(no default)
Environment variableBOX_OBSERVABILITY_DATADOG_BATCH_TIMEOUT
Deprecated environment variablesBOX_DD_BATCH_TIMEOUT
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Elastic

Elastic settings

Elastic Search auth

Format: <user>:<password> Basic auth credentials for ElasticSearch. API key is not supported.

IDobservability.elastic.search-auth
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_ELASTIC_SEARCH_AUTH
Deprecated environment variablesAIDBOX_ES_AUTH
Sensitivetrue — value will be masked in Admin UI
Set viaEnvironment variables
Hot reloadfalse — setting requires system restart

Elastic Search URL

If provided, enables mode to push logs to ElasticSearch

IDobservability.elastic.search-url
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_ELASTIC_SEARCH_URL
Deprecated environment variablesAIDBOX_ES_URL
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Elastic Search batch size

Log batch size used to optimize log shipping performance. The default value is 200

IDobservability.elastic.batch-size
TypeInt
Default value(no default)
Environment variableBOX_OBSERVABILITY_ELASTIC_BATCH_SIZE
Deprecated environment variablesAIDBOX_ES_BATCH_SIZE
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Elastic Search batch timeout

Timeout to post a batch to ElasticSearch. If there is not enough records to reach full batch size

IDobservability.elastic.batch-timeout
TypeInt
Default value60000
Environment variableBOX_OBSERVABILITY_ELASTIC_BATCH_TIMEOUT
Deprecated environment variablesAIDBOX_ES_BATCH_TIMEOUT
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaEnvironment variables
Hot reloadfalse — setting requires system restart

Elastic Search log format

Custom index format string. The default value is 'aidbox-logs'-yyyy-MM-dd.

IDobservability.elastic.index-pattern
TypeString
Default value'aidbox-logs'-yyyy-MM-dd
Environment variableBOX_OBSERVABILITY_ELASTIC_INDEX_PATTERN
Deprecated environment variablesAIDBOX_ES_INDEX_PAT
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Grafana

Grafana settings

Grafana URL for metrics dashboards

Grafana URL to update the metrics dashboards.

IDobservability.grafana.url
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_GRAFANA_URL
Deprecated environment variablesBOX_METRICS_GRAFANA_URL
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Grafana user for metrics dashboards

Grafana user to update the metrics dashboards.

IDobservability.grafana.user
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_GRAFANA_USER
Deprecated environment variablesBOX_METRICS_GRAFANA_USER
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Grafana password for metrics dashboards

Grafana password to update the metrics dashboards.

IDobservability.grafana.password
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_GRAFANA_PASSWORD
Deprecated environment variablesBOX_METRICS_GRAFANA_PASSWORD
Sensitivetrue — value will be masked in Admin UI
Set viaEnvironment variables
Hot reloadfalse — setting requires system restart

OTEL

OpenTelemetry settings

OTEL metrics request headers

The headers for OTEL metrics requests, formatted as HeaderName:HeaderValue HeaderName:HeaderValue.

IDobservability.otel.metrics-request-headers
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_OTEL_METRICS_REQUEST_HEADERS
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

OTEL metrics URL

The metrics' consumer URL (OTEL collector, Elastic EPM etc.).

IDobservability.otel.metrics-url
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_OTEL_METRICS_URL
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

OTEL metrics interval

The time interval (in seconds) for sending OTEL metrics.

IDobservability.otel.metrics-interval
TypeInt
Default value5
Environment variableBOX_OBSERVABILITY_OTEL_METRICS_INTERVAL
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

OTEL traces request headers

The headers for OTEL traces requests, formatted as HeaderName:HeaderValue HeaderName:HeaderValue.

IDobservability.otel.traces-request-headers
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_OTEL_TRACES_REQUEST_HEADERS
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

OTEL traces URL

The traces' consumer URL (OTEL collector, Elastic EPM etc.).

IDobservability.otel.traces-url
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_OTEL_TRACES_URL
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

OTEL traces batch max size

Max amount of traces in one send traces request

IDobservability.otel.traces-batch-max-size
TypeInt
Default value100
Environment variableBOX_OBSERVABILITY_OTEL_TRACES_BATCH_MAX_SIZE
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

OTEL traces batch timeout

Timeout in milliseconds between send traces requests

IDobservability.otel.traces-batch-timeout
TypeInt
Default value1000
Environment variableBOX_OBSERVABILITY_OTEL_TRACES_BATCH_TIMEOUT
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

OTEL traces history size

Traces history size on telemetry $status endpoint

IDobservability.otel.traces-history-size
TypeInt
Default value10
Environment variableBOX_OBSERVABILITY_OTEL_TRACES_HISTORY_SIZE
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

OTEL logs request headers

The headers for OTEL logs requests, formatted as HeaderName:HeaderValue HeaderName:HeaderValue.

IDobservability.otel.logs-request-headers
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_OTEL_LOGS_REQUEST_HEADERS
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

OTEL logs URL

The logs' consumer URL (OTEL collector, Elastic EPM etc.).

IDobservability.otel.logs-url
TypeString
Default value(no default)
Environment variableBOX_OBSERVABILITY_OTEL_LOGS_URL
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

OTEL logs batch max size

Max amount of logs in one send logs request

IDobservability.otel.logs-batch-max-size
TypeInt
Default value100
Environment variableBOX_OBSERVABILITY_OTEL_LOGS_BATCH_MAX_SIZE
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

OTEL logs batch timeout

Timeout in milliseconds between send logs requests

IDobservability.otel.logs-batch-timeout
TypeInt
Default value1000
Environment variableBOX_OBSERVABILITY_OTEL_LOGS_BATCH_TIMEOUT
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

OTEL logs history size

Logs history size on telemetry $status endpoint

IDobservability.otel.logs-history-size
TypeInt
Default value10
Environment variableBOX_OBSERVABILITY_OTEL_LOGS_HISTORY_SIZE
Available from2503
Sensitivefalse — value will be visible in plaintext in Admin UI
Set viaAdmin UI → Settings
Environment variables
Hot reloadfalse — setting requires system restart

Last updated 2025-08-28T20:11:09Z