[receiver/elasticsearch] Enable linter and fix issues (#11795)
[receiver/elasticsearch] Enable linter and fix issues (#11795)


open-telemetry/opentelemetry-collector-contrib,open-telemetry/opentelemetry-collector-contrib