Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/admin/observability/logs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Learn more about how to apply these environment variables in [docker-compose](/a

## Log format

A Sourcegraph service's log output format is configured via the environment variable `SRC_LOG_FORMAT`. The valid values are:
A Sourcegraph service's log output format is configured via the environment variable `SRC_LOG_FORMAT`. This design facilitates integration with external log aggregation systems and SIEM tools for centralized analysis, monitoring, and alerting.
The valid values are:

* `condensed`: Optimized for human readability.
* `json`: Machine-readable JSON format.
Expand Down Expand Up @@ -71,7 +72,7 @@ Note that this will also affect child scopes. So in the example you will also re

## Log sampling

Sourcegraph services that have migrated to the [new internal logging standard](/dev/how-to/add_logging) have log sampling enabled by default.
Sourcegraph services have log sampling enabled by default.
The first 100 identical log entries per second will always be output, but thereafter only every 100th identical message will be output.

This behaviour can be configured for each service using the following environment variables:
Expand Down