Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions docs/setup-robusta/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
multi-cluster
upgrade
tuning-performance
json-logging
configuration-secrets
openshift
read-only-service-account
Expand Down
28 changes: 28 additions & 0 deletions docs/setup-robusta/json-logging.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
JSON Log Format
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

By default, Robusta components emit human-readable, colored text logs. You can
switch them to **structured JSON logs** (one JSON object per line), which are
easier to index, search, and filter with log collectors such as Filebeat,
Fluent Bit, or Loki.

Enabling JSON Logs
-------------------------------------

Set the ``global.enableJsonLogsFormat`` value in your Helm values:

.. code-block:: yaml

global:
enableJsonLogsFormat: true

This single switch is shared across the Robusta components:

* **robusta-runner** emits JSON logs.
* **KRR** scan jobs inherit the setting from the runner (when scan results are
pushed back over the API, which is the default).
* **HolmesGPT** (when deployed via the chart) emits JSON logs as well — the
``global`` value is passed through to the Holmes sub-chart.

The default is ``false``, which preserves the existing colored text output. No
change is needed unless you want JSON logs.
Loading