From 48143ae6e227e805516d8030ff29661d44554aeb Mon Sep 17 00:00:00 2001 From: Monica Sarbu Date: Wed, 21 Oct 2015 15:15:03 +0200 Subject: [PATCH 1/4] Replace logstash with localhost --- docs/configuration.asciidoc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/configuration.asciidoc b/docs/configuration.asciidoc index adca8485ab5..67765bf1c24 100644 --- a/docs/configuration.asciidoc +++ b/docs/configuration.asciidoc @@ -443,15 +443,12 @@ output: logstash: enabled: true - hosts: - - logstash1:5044 - - logstash2:5044 - - logstash3:5044 + hosts: ["localhost:5044", "localhost:5045"] # configure index prefix name index: mybeat - # configure logstash plugin to loadbalance events between logstash instances + # configure logstash plugin to loadbalance events between the logstash instances loadbalance: true tls: From 0bad0438dacb525342928eb365fe7ee191827055 Mon Sep 17 00:00:00 2001 From: Monica Sarbu Date: Wed, 21 Oct 2015 15:20:14 +0200 Subject: [PATCH 2/4] Use only one logstash instance in the example --- docs/configuration.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration.asciidoc b/docs/configuration.asciidoc index 67765bf1c24..692ce6c744c 100644 --- a/docs/configuration.asciidoc +++ b/docs/configuration.asciidoc @@ -443,13 +443,13 @@ output: logstash: enabled: true - hosts: ["localhost:5044", "localhost:5045"] + hosts: ["localhost:5044"] # configure index prefix name index: mybeat # configure logstash plugin to loadbalance events between the logstash instances - loadbalance: true + loadbalance: false tls: # disable tls for testing (TLS must be disabled in logstash too) From d743ba08d17f3e10d496146fac86c20cb4fd2f4f Mon Sep 17 00:00:00 2001 From: Monica Sarbu Date: Wed, 21 Oct 2015 15:33:29 +0200 Subject: [PATCH 3/4] Use localhost as the default ES output --- docs/configuration.asciidoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/configuration.asciidoc b/docs/configuration.asciidoc index 692ce6c744c..83ccec90075 100644 --- a/docs/configuration.asciidoc +++ b/docs/configuration.asciidoc @@ -175,7 +175,7 @@ output: enabled: true # The Elasticsearch cluster - hosts: ["http://10.45.3.2", "http://10.45.3.1/elasticsearch"] + hosts: ["http://localhost:9200"] # Comment this option if you don't want to store the topology in # Elasticsearch. The default is false. @@ -211,7 +211,7 @@ output: enabled: true # The Elasticsearch cluster - hosts: ["https://10.45.3.2", "https://10.45.3.1"] + hosts: ["https://localhost:9200"] # Comment this option if you don't want to store the topology in # Elasticsearch. The default is false. @@ -236,7 +236,7 @@ output: enabled: true # The Elasticsearch cluster - hosts: ["10.45.3.2", "10.45.3.1"] + hosts: ["localhost"] # Optional http or https. Default is http protocol: "https" From 22f1d26bff23c5618e885999b01830a418e3f044 Mon Sep 17 00:00:00 2001 From: Monica Sarbu Date: Wed, 21 Oct 2015 15:38:02 +0200 Subject: [PATCH 4/4] Remove loadbalance opt from the default config file --- docs/configuration.asciidoc | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/docs/configuration.asciidoc b/docs/configuration.asciidoc index 83ccec90075..86475a5d3aa 100644 --- a/docs/configuration.asciidoc +++ b/docs/configuration.asciidoc @@ -448,9 +448,6 @@ output: # configure index prefix name index: mybeat - # configure logstash plugin to loadbalance events between the logstash instances - loadbalance: false - tls: # disable tls for testing (TLS must be disabled in logstash too) disabled: true @@ -475,6 +472,26 @@ the output plugin will send all events to only one host (determined by random) switching to another host if selected one becomes unresponsive. The default value is false. +[source,yaml] +------------------------------------------------------------------------------ +output: + logstash: + enabled: true + + hosts: ["localhost:5044", "localhost:5045"] + + # configure index prefix name + index: mybeat + + # configure logstash plugin to loadbalance events between the logstash instances + loadbalance: true + + tls: + # disable tls for testing (TLS must be disabled in logstash too) + disabled: true +------------------------------------------------------------------------------ + + ===== port Default port to use if port number not given in hosts. The default port number