I want to log to elasticsearch using serilog.
I have added Elastic.Serilog.Sinks package to my application.
But there is no way to pass username and password while configuring serilog elasticsearch config.
My assumption is that I would need to pass log index name, url, username, password while configuring serilog with elasticsearch sink.
https://www.elastic.co/guide/en/ecs-logging/dotnet/current/serilog-data-shipper.html
Above url has example to configure using url. Also, there is no index name.
Is log index name and data stream name same ?
How to pass username and password while configuring serilog elasticsearch configuration ?