-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The remote server returned an error: (406) Not Acceptable. #51
Comments
Please attach the complete configuration in order for us to be able to help you |
In addition, please specify:
|
Log4Net Version 1.2.15.0 SerializeObjects set to False but got same error ElasticSearch.log does not register new entries |
I guess you are using ElasticSearch 6.0 RC 2? Furthermore, because you are using version 2.0.0 there are few breaking changes you need to be aware of which are listed here: Breaking Changes |
Closing since no activity |
Hi. I am trying to log to our ElasticSearch, but i get the following error:
log4net: Loading Appender [ElasticSearchAppender] type: [log4stash.ElasticSearchAppender, log4stash]
log4net: Setting Property [Server] to String value [192.168.240.199]
log4net: Setting Property [Port] to Int32 value [9200]
log4net: Setting Property [IndexName] to String value [bbvanet]
log4net: Setting Property [IndexAsync] to Boolean value [True]
log4net: Setting Collection Property [AddKv] to object [log4stash.Filters.KvFilter]
log4net: Setting Property [ElasticFilters] to object [log4stash.ElasticAppenderFilters]
log4net: Created Appender [ElasticSearchAppender]
log4net: Adding appender named [ElasticSearchAppender] to logger [root].
log4net: Hierarchy Threshold []
log4net:ERROR Got error while reading response from ElasticSearch
System.Net.WebException: The remote server returned an error: (406) Not Acceptable.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at log4stash.WebElasticClient.SafeGetAndCheckResponse(Func`1 getResponse) in c:\github\log4stash\src\log4stash\ElasticClient\ElasticClient.cs:line 189
My config is as your example
192.168.240.199
9200
what could be?
The text was updated successfully, but these errors were encountered: