Skip to content

Commit

Permalink
fix(Logs): Implement peer feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rhetoric101 committed Mar 29, 2024
1 parent 07c67d1 commit 1e11d4a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ For more on these options, see the agent-specific logs-in-context docs.

## Log metrics [#log-metrics]

When you set up an <InlinePopover type="apm" /> agent, you automatically get a **Logs** chart of logging metrics on the APM <DoNotTranslate>**Summary**</DoNotTranslate> page:
When you set up an <InlinePopover type="apm" /> agent, you automatically get a chart of logging metrics on the APM <DoNotTranslate>**Summary**</DoNotTranslate> page:

<img
style={{ align: 'left',maxWidth: '70%' }}
Expand All @@ -174,15 +174,15 @@ When you set up an <InlinePopover type="apm" /> agent, you automatically get a *
src={logsLoggingMetrics}
/>

This chart shows a count of logs, and if you haven't disabled APM log forwarding, you can click on the chart links that will take you to the logs themselves. Even if you turn off APM log forwarding, this chart still shows the potential logs you could inspect if you had APM log forwarding enabled.
This chart shows a count of logs. If you haven't disabled APM log forwarding, you can click on the chart links that will take you to the logs themselves. Even if you turn off APM log forwarding, this chart still shows the potential logs you could inspect if you had APM log forwarding enabled.

Logging metrics are reported via the `apm.service.logging.lines` attribute, as shown in the following query:

```sql
SELECT count(apm.service.logging.lines) FROM Metric WHERE (entity.guid = 'AN_ENTITY_GUID') LIMIT MAX SINCE 60 seconds AGO TIMESERIES
```

If you don't want to see that logging metrics chart, you can turn it off&mdash;but not at the account level. To disable logging metrics, see the dedicated APM configuration docs for your agent (for example, [this `logging_metrics` config option for PHP](/docs/apm/agents/php-agent/configuration/php-agent-configuration/#cfg-application_logging_metrics-enabled)).
If you don't want to see the logging metrics chart, you can turn it off&mdash;but not at the account level. To disable logging metrics, see the dedicated APM configuration docs for your agent (for example, [this `logging_metrics` config option for PHP](/docs/apm/agents/php-agent/configuration/php-agent-configuration/#cfg-application_logging_metrics-enabled)).

<Callout variant="important">
If you disable logging metrics, that does not turn off the APM log forwarding feature. To stop forwarding APM logs, see [Manage or disable APM logs in context](/docs/logs/logs-context/disable-automatic-logging/).
Expand Down

0 comments on commit 1e11d4a

Please sign in to comment.