Elasticsearch Access Log

↘锁芯ラ 提交于 2021-01-27 13:43:25

问题


I'm trying to track down who is issuing queries to an ElasticSearch Cluster. Elastic doesn't appear to have an access log.

Is there a place where I can find out which IP is hitting the cluster?


回答1:


Elasticsearch doesn't provide any security out of the box, and that is on purpose and by design.

So you have a couple solutions out there:

  1. Don't let your ES cluster exposed to the open world, but put it behind a firewall (i.e. whitelist the hosts that can access ports 9200/9300 on your nodes)

  2. Look into the Shield plugin for Elasticsearch in order to secure your environment.

  3. Put an nginx server in front of your cluster to act as a reverse proxy.

  4. Add simple basic authentication with either the elasticsearch-jetty plugin or simply the elasticsearch-http-basic plugin, which also allowws you to whitelist the client IPs that are allowed to access your cluster.

If you want to have access logs, you need either 2 or 3, but all solutions above will allow you to secure your ES environment.



来源:https://stackoverflow.com/questions/30916779/elasticsearch-access-log

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!