From 8a94688114912989bd9681edb42fd0c31a89dd6c Mon Sep 17 00:00:00 2001 From: Gareth Dawson Date: Tue, 7 Feb 2023 16:17:10 +0000 Subject: [PATCH] Logs: Rename dedup to deduplication (#62944) * fix: rename dedup with deduplication * docs: update documentation * fix: update names --- docs/sources/explore/logs-integration.md | 4 ++-- public/app/features/explore/Logs.tsx | 2 +- public/app/features/explore/LogsMetaRow.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/sources/explore/logs-integration.md b/docs/sources/explore/logs-integration.md index c40fb5642a8..c405dfd9331 100644 --- a/docs/sources/explore/logs-integration.md +++ b/docs/sources/explore/logs-integration.md @@ -85,13 +85,13 @@ Set this to True if you want the display to use line wrapping. If set to False, Set this to `true` to pretty print all JSON logs. This setting does not affect logs in any format other than JSON. -#### Deduping +#### Deduplication Log data can be very repetitive and Explore can help by hiding duplicate log lines. There are a few different deduplication algorithms that you can use: - **Exact -** Exact matches are done on the whole line except for date fields. - **Numbers -** Matches on the line after stripping out numbers such as durations, IP addresses, and so on. -- **Signature -** The most aggressive deduping, this strips all letters and numbers and matches on the remaining whitespace and punctuation. +- **Signature -** The most aggressive deduplication, this strips all letters and numbers and matches on the remaining whitespace and punctuation. #### Flip results order diff --git a/public/app/features/explore/Logs.tsx b/public/app/features/explore/Logs.tsx index 96de60d9a3e..f934b8b9dda 100644 --- a/public/app/features/explore/Logs.tsx +++ b/public/app/features/explore/Logs.tsx @@ -438,7 +438,7 @@ class UnthemedLogs extends PureComponent { id={`prettify_${exploreId}`} /> - + ({ label: capitalize(dedupType), diff --git a/public/app/features/explore/LogsMetaRow.tsx b/public/app/features/explore/LogsMetaRow.tsx index 402ed08aefb..926817cde80 100644 --- a/public/app/features/explore/LogsMetaRow.tsx +++ b/public/app/features/explore/LogsMetaRow.tsx @@ -80,7 +80,7 @@ export const LogsMetaRow = React.memo( // Add deduplication info if (dedupStrategy !== LogsDedupStrategy.none) { logsMetaItem.push({ - label: 'Dedup count', + label: 'Deduplication count', value: dedupCount, kind: LogsMetaKind.Number, });