logstash icon indicating copy to clipboard operation
logstash copied to clipboard

[DOCS] Inconsistencies at Centralised Pipeline Management

Open quentin-legraverend opened this issue 8 years ago • 2 comments

Hi all,

I may have found a doc issue while struggling to make Centralised Pipeline Management works with a Trial License. The concerned doc page is that one : https://www.elastic.co/guide/en/logstash/6.3/configuring-centralized-pipelines.html

Here is the problem: Step 2 says:

Specify configuration management settings in the logstash.yml file. At a minimum, set:

xpack.management.enabled: true
xpack.management.elasticsearch.url
xpack.management.pipeline.id

Few lines after we can read a note:

Centralized management is disabled until you configure and enable X-Pack security.

This seems inconsistent. Centralised Pipeline Management with only the "At a minimum" settings described here won't work. Moreover, step 4 is also a non-sense. "If your Elasticsearch cluster is protected with basic authentication", but we must enable basic security to get the feature working...

I hope I'm right and I hope it helped a bit. Nice day, Kuaaaly

quentin-legraverend avatar Sep 17 '18 10:09 quentin-legraverend

I can confirm after trying it.

If:

  1. You add this in the elasticsearch.yml:
xpack.security.enabled: true
  1. You set up the password using (for example):
/usr/share/elasticsearch/bin/elasticsearch-setup-passwords interactive
  1. You tune kibana.yml & logstash.yml conveniently (with appropriate username / password).

The "Logstash > Pipelines" panel under "Kibana > Management" will appear magically.

Kuaaaly

quentin-legraverend avatar Sep 17 '18 11:09 quentin-legraverend

@Kuaaaly you're right. This could be made more clear.

Security is required because the pipeline configurations we receive from Elasticsearch can contain arbitrary executable code, and we want to ensure that Logstash is talking to a trusted Elasticsearch node and not a man-in-the-middle before accepting and executing new pipelines configurations.

@karenzone could you take a look at this when you get a chance?

yaauie avatar Sep 19 '18 01:09 yaauie