Skip to content
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

Timeout problem #17

Closed
Mac1q opened this issue Nov 4, 2016 · 3 comments
Closed

Timeout problem #17

Mac1q opened this issue Nov 4, 2016 · 3 comments

Comments

@Mac1q
Copy link

Mac1q commented Nov 4, 2016

Hello,
I have this problem during logging:

log4net:ERROR Invalid connection to ElasticSearch
System.Net.WebException: The operation has timed out
   at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
   at System.Net.HttpWebRequest.GetRequestStream()
   at log4stash.WebElasticClient.SendRequest(WebRequest webRequest, String requestString) in d:\uriel\Programing\C#\log4stash\src\log4stash\ElasticClient\ElasticClient.cs:line 152
   at log4stash.WebElasticClient.PrepareBulkAndSend(IEnumerable`1 bulk) in d:\uriel\Programing\C#\log4stash\src\log4stash\ElasticClient\ElasticClient.cs:line 129
   at log4stash.WebElasticClient.IndexBulk(IEnumerable`1 bulk) in d:\uriel\Programing\C#\log4stash\src\log4stash\ElasticClient\ElasticClient.cs:line 98
   at log4stash.ElasticSearchAppender.DoIndexNow() in d:\uriel\Programing\C#\log4stash\src\log4stash\ElasticSearchAppender.cs:line 175

I tried update for last 2.0.2-c but same issue, only line numbers changed:

log4net:ERROR Invalid request to ElasticSearch
System.Net.WebException: The operation has timed out
   at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
   at System.Net.HttpWebRequest.GetRequestStream()
   at log4stash.WebElasticClient.SafeSendRequest(RequestDetails request, Func`1 getRequestStream) in d:\uriel\Programing\C#\log4stash\src\log4stash\ElasticClient\ElasticClient.cs:line 169

Could you please help?

@Mac1q
Copy link
Author

Mac1q commented Nov 4, 2016

And connection is OK, I tried it via Sense API and for 4-5days I logged without problem

@urielha
Copy link
Owner

urielha commented Nov 12, 2016

Do you have any firewall on the way?
I haven't encounter such problem before, what environment are you using?

@urielha
Copy link
Owner

urielha commented Mar 8, 2017

Closed due to inactivity. If this happened again please reopen.

@urielha urielha closed this as completed Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants