Skip to content

[Fleet] Update procedure to change logging level #1107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 11, 2025
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
18 changes: 9 additions & 9 deletions reference/fleet/monitor-elastic-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mapped_pages:
* [View details for an agent](#view-agent-details)
* [View agent activity](#view-agent-activity)
* [View agent logs](#view-agent-logs)
* [Change the logging level](#change-logging-level)
* [Collect {{agent}} diagnostics](#collect-agent-diagnostics)
* [View the {{agent}} metrics dashboard](#view-agent-metrics)
* [Change {{agent}} monitoring settings](#change-agent-monitoring)
Expand Down Expand Up @@ -141,14 +142,9 @@ On the **Logs** tab you can filter, search, and explore the agent logs:

The logging level for monitored agents is set to `info` by default. You can change the agent logging level, for example, to turn on debug logging remotely:

1. After navigating to the **Logs** tab as described in [View agent logs](#view-agent-logs), scroll down to find the **Agent logging level** setting.

:::{image} images/agent-set-logging-level.png
:alt: Logs tab showing the agent logging level setting
:screenshot:
:::

2. Select an **Agent logging level**:
1. In {{fleet}}, open the **Agents** tab.
2. In the **Host** column, click the agent’s name.
3. On the **Settings** tab, select an **Agent logging level**:

| | |
| --- | --- |
Expand All @@ -157,7 +153,11 @@ The logging level for monitored agents is set to `info` by default. You can chan
| `info`<br> | Logs informational messages, including the number of events that are published.Also logs any warnings, errors, or critical errors. |
| `debug`<br> | Logs debug messages, including a detailed printout of all events flushed. Alsologs informational messages, warnings, errors, and critical errors. |

3. Click **Apply changes** to apply the updated logging level to the agent.
:::{note}
Prior to version 9.1 the **Agent logging level** setting is located on the **Logs** tab.
:::

When you select a new setting the change is saved automatically.


## Collect {{agent}} diagnostics [collect-agent-diagnostics]
Expand Down
Loading