Is it possible to use the authentication settings in a beat.yml to authenticate to nginx before sending into Elasticsearch?
If you mean basic auth against the Nginx service, the answer is yes. The main problem is that we lack documentation on it. See https://github.com/elastic/beats/issues/6493