diff --git a/docs/sources/explore/logs-integration.md b/docs/sources/explore/logs-integration.md index 3e19c75196f..824faec1c20 100644 --- a/docs/sources/explore/logs-integration.md +++ b/docs/sources/explore/logs-integration.md @@ -97,6 +97,17 @@ You can change the order of received logs from the default descending order (new Each log row has an extendable area with its labels and detected fields, for more robust interaction. For all labels we have added the ability to filter for (positive filter) and filter out (negative filter) selected labels. Each field or label also has a stats icon to display ad-hoc statistics in relation to all displayed logs. +### Escaping newlines + +Explore automatically detects some incorrectly escaped sequences in log lines, such as newlines (`\n`, `\r`) or tabs (`\t`). When it detects such sequences, Explore provides an "Escape newlines" option. + +To automatically fix incorrectly escaped sequences that Explore has detected: + +1. Click "Escape newlines" to replace the sequences. +2. Manually review the replacements to confirm their correctness. + +Explore replaces these sequences. When it does so, the option will change from "Escape newlines" to "Remove escaping". Evaluate the changes as the parsing may not be accurate based on the input received. You can revert the replacements by clicking "Remove escaping". + #### Derived fields links By using Derived fields, you can turn any part of a log message into an internal or external link. The created link is visible as a button next to the Detected field in the Log details view. diff --git a/public/app/features/explore/LogsMetaRow.tsx b/public/app/features/explore/LogsMetaRow.tsx index 7a62da7a8ad..c7841420117 100644 --- a/public/app/features/explore/LogsMetaRow.tsx +++ b/public/app/features/explore/LogsMetaRow.tsx @@ -71,7 +71,7 @@ export const LogsMetaRow: React.FC = React.memo( label: 'Your logs might have incorrectly escaped content', value: (