bruno-garcia / log4net.ElasticSearch

log4net appender to ElasticSearch
https://bruno-garcia.github.io/log4net.ElasticSearch/
Other
219 stars 92 forks source link

AWS Elastic Search Service connection issue with log4Net #133

Open a08maheshwari opened 3 years ago

a08maheshwari commented 3 years ago

I am using Amazon Elasticsearch Service for creating domains using a fine-grained access domain( username and password)

I have configured app.config like this <?xml version="1.0"?>

Calling Method :

private static readonly ILog _log = LogManager.GetLogger(typeof(Program)); _log.Error("errorr", new ApplicationException("The new application exploded")); I tried diagnosing the log4net Logs in to text file, but there is no error in that

Can anyone suggest If there is any possible way to work with Elasticsearch as a service?

Thanks in Advance

Abouzeid commented 3 years ago

As a starting point:

  1. Create a new account in ElasticSearch, but make sure that the username and password are in plaintext. No special characters in the password. For example, username: name & password: pswd

  2. It might be a permission problem, therefore, give the user a high role (e.g superuser).