Elastic logging

whenever there is an exception from the cluster like EsRejectedException we are not logging it on the elastic side. We have to rely on the client to provide this information. is there a way we could enable the exhaustive logging on the Elastic side to know every exception thrown by elastic cluster.

Look at the filebeat elasticsearch and logstash modules.

I am asking for the logging on the elastic nodes level, i mean to enable logging in the cluster

Yes, you would have to run filebeat elasticsearch module on all elastic nodes.

file beat is just to ship the logs and how would running filebeat collect the exceptions thrown from the cluster?