How to intercept each request using java plugin in ElasticSearch 6.7.0

Hi All,

I need to handle all request in Elastic Search, it should work like interceptor.

I found some example but its all about 5.1.x but I need 6.7.0 version elastic search.


It depends on a couple things. Are you using elasticsearch security? If so, it won't be possible, as the security module needs to do this interception. It would then depend if you mean for rest or transport protocol. For rest, look at ActionPlugin.getRestHandlerWrapper. For transport look at ActionPlugin.getActionFilters.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.