From 1f8d0721f97b6ddfa4ef15b995b6681b0e4576af Mon Sep 17 00:00:00 2001 From: Pier-Hugues Pellerin Date: Tue, 27 Mar 2018 03:04:42 -0400 Subject: [PATCH] =?UTF-8?q?Remove=20double=20`password`=20and=20`username`?= =?UTF-8?q?=20in=20the=20Redis=20input=20config=20opt=E2=80=A6=20(#6662)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove a double password in the yml file. - Remove mention of username in the configuration, nothing in the input code uses thats. - Remove space --- CHANGELOG.asciidoc | 1 + filebeat/_meta/common.reference.p2.yml | 8 +++++--- filebeat/docs/inputs/input-redis.asciidoc | 9 +-------- filebeat/filebeat.reference.yml | 8 +++++--- filebeat/input/redis/config.go | 1 - 5 files changed, 12 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index d506dfe9ad86..6a28c321add7 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -48,6 +48,7 @@ https://github.com/elastic/beats/compare/v6.0.0-beta2...master[Check the HEAD di - Refactor the usage of prospector to input in the YAML reference and the system test. {pull}6121[6121] - Add IIS module to parse access log and error log. {pull}6127[6127] +- Remove the undefined `username` option from the Redis input and clarify the documentation. {pull}6662[6662] *Heartbeat* diff --git a/filebeat/_meta/common.reference.p2.yml b/filebeat/_meta/common.reference.p2.yml index 2d188e68bdaa..4e922d48a92d 100644 --- a/filebeat/_meta/common.reference.p2.yml +++ b/filebeat/_meta/common.reference.p2.yml @@ -213,10 +213,12 @@ filebeat.inputs: #------------------------- Redis slowlog input --------------------------- # Experimental: Config options for the redis slow log input #- type: redis - #hosts: ["localhost:6379"] - #username: - #password: #enabled: false + + # List of hosts to pool to retrieve the slow log information. + #hosts: ["localhost:6379"] + + # How often the input checks for redis slow log. #scan_frequency: 10s # Timeout after which time the input should return an error diff --git a/filebeat/docs/inputs/input-redis.asciidoc b/filebeat/docs/inputs/input-redis.asciidoc index ace26a69c319..05d3f9ec2075 100644 --- a/filebeat/docs/inputs/input-redis.asciidoc +++ b/filebeat/docs/inputs/input-redis.asciidoc @@ -18,7 +18,6 @@ Example configuration: {beatname_lc}.inputs: - type: redis hosts: ["localhost:6379"] - username: "$\{redis_user\}" password: "$\{redis_pwd\}" ---- @@ -34,12 +33,6 @@ The `redis` input supports the following configuration options plus the The list of Redis hosts to connect to. -[float] -[[redis-username]] -===== `username` - -The username to use when connecting to Redis. - [float] [[redis-password]] ===== `password` @@ -59,7 +52,7 @@ The default is `10s`. IMPORTANT: Redis slowlogs are not permanent. To ensure that all slowlog entries are collected, set `scan_frequency` to a value that allows {beatname_uc} sufficient time to connect to Redis, query the logs, and buffer them to the -output within the specified interval. +output within the specified interval. [float] [[redis-timeout]] diff --git a/filebeat/filebeat.reference.yml b/filebeat/filebeat.reference.yml index 97f28caea7c5..664dcea51be9 100644 --- a/filebeat/filebeat.reference.yml +++ b/filebeat/filebeat.reference.yml @@ -508,10 +508,12 @@ filebeat.inputs: #------------------------- Redis slowlog input --------------------------- # Experimental: Config options for the redis slow log input #- type: redis - #hosts: ["localhost:6379"] - #username: - #password: #enabled: false + + # List of hosts to pool to retrieve the slow log information. + #hosts: ["localhost:6379"] + + # How often the input checks for redis slow log. #scan_frequency: 10s # Timeout after which time the input should return an error diff --git a/filebeat/input/redis/config.go b/filebeat/input/redis/config.go index 5b43551dad0e..118747026497 100644 --- a/filebeat/input/redis/config.go +++ b/filebeat/input/redis/config.go @@ -7,7 +7,6 @@ import ( ) var defaultConfig = config{ - ForwarderConfig: harvester.ForwarderConfig{ Type: "redis", },