elastic / elastic/logstash

Centralized config management requires escaping certain characters?

Open
#9,440 0 comments 0 reactions 0 assignees View on GitHub
management v6.0.0-beta2 x-pack
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
1d 4h
Merged PRs (30d)
88

Description

*Original comment by @peterskim12:*

It looks like certain characters might have to be escaped when using the GUI centralized config management editor? Or config management in general?

I've attached a sample config I tried to create in the GUI. The ES password contains some non-alphanumeric characters. I was able to run Logstash with this config file without a problem when disabling config management and running it with bin/logstash -f .

However, when I tried to define this config in the GUI, I kept getting ES 401 responses.

[2017-09-13T15:47:19,569][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://localhost:9200/, :path=>"/"}
[2017-09-13T15:47:19,572][WARN ][logstash.outputs.elasticsearch] Attempted to resurrect connection to dead ES instance, but got an error. {:url=>"http://localhost:9200/", :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :error=>"Got response code '401' contacting Elasticsearch at URL 'http://localhost:9200/'"}

I changed the password to one that has only alphanumeric characters and it started working.

LINK REDACTED

Do some characters need escaping when entered through the GUI? Or is this some other problem?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.