I have a watch which checks the request_cache. Therefore I need to query the elasticsearch API using basic auth for the watch which looks as follows:
PUT _xpack/watcher/watch/request-cache-watcher { "trigger": { "schedule": { "interval": "1h" } }, "input": { "http": { "request": { "host": "localhost", "port": 9200, "path": "/_nodes/stats/indices/request_cache", "params": { "human": "true" }, "auth": { "basic": { "username": "request_cache_watch", "password": "somepassword" ...
Reading the data from the index ".watcher-history-*" I was surprised to see username and password in the resulting answer to my query. Is there a way to prevent writing this sensitive data into the index? If not what would be the most secure way to watch the request cache?
I use Elasticsearch and Kibana 5.0 btw.
Thank you.