From 30fa217fed89804eb7dc9fc1815c8ccb38d47068 Mon Sep 17 00:00:00 2001 From: peterreg Date: Thu, 1 Dec 2022 08:34:16 -0800 Subject: [PATCH] Telegraf Agent config edits (#4653) Co-authored-by: Scott Anderson --- content/telegraf/v1.20/administration/configuration.md | 8 ++------ content/telegraf/v1.21/administration/configuration.md | 8 ++------ content/telegraf/v1.22/configuration.md | 8 ++------ content/telegraf/v1.23/configuration.md | 8 ++------ content/telegraf/v1.24/configuration.md | 8 ++------ 5 files changed, 10 insertions(+), 30 deletions(-) diff --git a/content/telegraf/v1.20/administration/configuration.md b/content/telegraf/v1.20/administration/configuration.md index ec87226cb..92d8168d3 100644 --- a/content/telegraf/v1.20/administration/configuration.md +++ b/content/telegraf/v1.20/administration/configuration.md @@ -123,14 +123,10 @@ For example, a `flush_jitter` of 5s and `flush_interval` of 10s means flushes wi as the collection interval, with the maximum being 1s. Precision will NOT be used for service inputs, such as `logparser` and `statsd`. Valid values are `ns`, `us` (or `µs`), `ms`, and `s`. -* **logfile**: Specify the log file name. The empty string means to log to `stderr`. * **debug**: Run Telegraf in debug mode. * **quiet**: Run Telegraf in quiet mode (error messages only). -* **logtarget**: Control the destination for logs. Can be one of "file", -"stderr" or, on Windows, "eventlog". When set to "file", the output file is -determined by the "logfile" setting. -* **logfile**: Name the file to be logged to when using the "file" logtarget. If set -to the empty then logs are written to stderr. +* **logtarget**: Controls the destination for logs and can be set to “file”, “stderr”, or, on Windows, “eventlog”. When set to “file”, the output file is determined by the logfile setting. +* **logfile**: If logtarget is set to “file” specify the logfile name. If set to the empty string then logs are written to stderr. * **logfile_rotation_interval**: Rotates logfile after the time interval specified. When set to 0 no time based rotation is performed. * **logfile_rotation_max_size**: Rotates logfile when it becomes larger than the specified diff --git a/content/telegraf/v1.21/administration/configuration.md b/content/telegraf/v1.21/administration/configuration.md index 074d33991..bdb2582bc 100644 --- a/content/telegraf/v1.21/administration/configuration.md +++ b/content/telegraf/v1.21/administration/configuration.md @@ -123,14 +123,10 @@ For example, a `flush_jitter` of 5s and `flush_interval` of 10s means flushes wi * **precision**: Collected metrics are rounded to the precision specified as an `interval` (integer + unit, ex: `1ns`, `1us`, `1ms`, and `1s` . Precision will NOT be used for service inputs, such as `logparser` and `statsd`. -* **logfile**: Specify the log file name. The empty string means to log to `stderr`. * **debug**: Run Telegraf in debug mode. * **quiet**: Run Telegraf in quiet mode (error messages only). -* **logtarget**: Control the destination for logs. Can be one of "file", -"stderr" or, on Windows, "eventlog". When set to "file", the output file is -determined by the "logfile" setting. -* **logfile**: Name the file to be logged to when using the "file" logtarget. If set -to the empty then logs are written to stderr. +* **logtarget**: Controls the destination for logs and can be set to “file”, “stderr”, or, on Windows, “eventlog”. When set to “file”, the output file is determined by the logfile setting. +* **logfile**: If logtarget is set to “file” specify the logfile name. If set to the empty string then logs are written to stderr. * **logfile_rotation_interval**: Rotates logfile after the time interval specified. When set to 0 no time based rotation is performed. * **logfile_rotation_max_size**: Rotates logfile when it becomes larger than the specified diff --git a/content/telegraf/v1.22/configuration.md b/content/telegraf/v1.22/configuration.md index 23937d1bc..d1a92b937 100644 --- a/content/telegraf/v1.22/configuration.md +++ b/content/telegraf/v1.22/configuration.md @@ -126,14 +126,10 @@ For example, a `flush_jitter` of 5s and `flush_interval` of 10s means flushes wi * **precision**: Collected metrics are rounded to the precision specified as an `interval` (integer + unit, ex: `1ns`, `1us`, `1ms`, and `1s` . Precision will NOT be used for service inputs, such as `logparser` and `statsd`. -* **logfile**: Specify the log file name. The empty string means to log to `stderr`. * **debug**: Run Telegraf in debug mode. * **quiet**: Run Telegraf in quiet mode (error messages only). -* **logtarget**: Control the destination for logs. Can be one of "file", -"stderr" or, on Windows, "eventlog". When set to "file", the output file is -determined by the "logfile" setting. -* **logfile**: Name the file to be logged to when using the "file" logtarget. If set -to the empty then logs are written to stderr. +* **logtarget**: Controls the destination for logs and can be set to “file”, “stderr”, or, on Windows, “eventlog”. When set to “file”, the output file is determined by the logfile setting. +* **logfile**: If logtarget is set to “file” specify the logfile name. If set to the empty string then logs are written to stderr. * **logfile_rotation_interval**: Rotates logfile after the time interval specified. When set to 0 no time based rotation is performed. * **logfile_rotation_max_size**: Rotates logfile when it becomes larger than the specified diff --git a/content/telegraf/v1.23/configuration.md b/content/telegraf/v1.23/configuration.md index 9afb65d99..b63db1093 100644 --- a/content/telegraf/v1.23/configuration.md +++ b/content/telegraf/v1.23/configuration.md @@ -126,14 +126,10 @@ For example, a `flush_jitter` of 5s and `flush_interval` of 10s means flushes wi * **precision**: Collected metrics are rounded to the precision specified as an `interval` (integer + unit, ex: `1ns`, `1us`, `1ms`, and `1s` . Precision will NOT be used for service inputs, such as `logparser` and `statsd`. -* **logfile**: Specify the log file name. The empty string means to log to `stderr`. * **debug**: Run Telegraf in debug mode. * **quiet**: Run Telegraf in quiet mode (error messages only). -* **logtarget**: Control the destination for logs. Can be one of "file", -"stderr" or, on Windows, "eventlog". When set to "file", the output file is -determined by the "logfile" setting. -* **logfile**: Name the file to be logged to when using the "file" logtarget. If set -to the empty then logs are written to stderr. +* **logtarget**: Controls the destination for logs and can be set to “file”, “stderr”, or, on Windows, “eventlog”. When set to “file”, the output file is determined by the logfile setting. +* **logfile**: If logtarget is set to “file” specify the logfile name. If set to the empty string then logs are written to stderr. * **logfile_rotation_interval**: Rotates logfile after the time interval specified. When set to 0 no time based rotation is performed. * **logfile_rotation_max_size**: Rotates logfile when it becomes larger than the specified diff --git a/content/telegraf/v1.24/configuration.md b/content/telegraf/v1.24/configuration.md index a1a713062..561d91179 100644 --- a/content/telegraf/v1.24/configuration.md +++ b/content/telegraf/v1.24/configuration.md @@ -126,14 +126,10 @@ For example, a `flush_jitter` of 5s and `flush_interval` of 10s means flushes wi * **precision**: Collected metrics are rounded to the precision specified as an `interval` (integer + unit, ex: `1ns`, `1us`, `1ms`, and `1s` . Precision will NOT be used for service inputs, such as `logparser` and `statsd`. -* **logfile**: Specify the log file name. The empty string means to log to `stderr`. * **debug**: Run Telegraf in debug mode. * **quiet**: Run Telegraf in quiet mode (error messages only). -* **logtarget**: Control the destination for logs. Can be one of "file", -"stderr" or, on Windows, "eventlog". When set to "file", the output file is -determined by the "logfile" setting. -* **logfile**: Name the file to be logged to when using the "file" logtarget. If set -to the empty then logs are written to stderr. +* **logtarget**: Controls the destination for logs and can be set to “file”, “stderr”, or, on Windows, “eventlog”. When set to “file”, the output file is determined by the logfile setting. +* **logfile**: If logtarget is set to “file” specify the logfile name. If set to the empty string then logs are written to stderr. * **logfile_rotation_interval**: Rotates logfile after the time interval specified. When set to 0 no time based rotation is performed. * **logfile_rotation_max_size**: Rotates logfile when it becomes larger than the specified