You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try access the page /ELMAH (or the path you configure to show ELMAH errors) and check if there is any error with the application.
In my case was that NEST and Elasticsearch.Net packages are in version 6 and this package (Elmah.Io.ElastiSearch) supports only the version 2 of this packages. (Maybe supports the 3, 4 and/or 5, but I didn't test)
If this is your problem too, you have some alternatives:
downgrade the NEST and Elasticsearch.NET packages to a compatible version (2.x.x)
Use this fork of Elmah.Io.ElasticSearch that works for the version 6 of this packages
Wait until the official package become compatible
If that is not your case, and the ELMAH error page shows normally, probably your Elastic Search connection string is wrong or you didn't set the errorLog directive in the web.config correctly
I already using Elmah to send email with errors.
I tested the sample and works fine.
When i configured to ElasticSearch in my webapi project the output:
GET elmah/error/_search { "query": { "match_all": {} } }
this result
{ "took": 1, "timed_out": false, "_shards": { "total": 5, "successful": 5, "skipped": 0, "failed": 0 }, "hits": { "total": 4, "max_score": 1, "hits": [ { "_index": "elmah", "_type": "error", "_id": "3dox_WQBVZNQ__bDh_oa", "_score": 1, "_source": { "query": { "match_all": {} } } }, { "_index": "elmah", "_type": "error", "_id": "_search_shards", "_score": 1, "_source": { "query": { "match_all": {} } } }, { "_index": "elmah", "_type": "error", "_id": "3Nox_WQBVZNQ__bDafq5", "_score": 1, "_source": { "query": { "match_all": {} } } }, { "_index": "elmah", "_type": "error", "_id": "_percolate", "_score": 1, "_source": { "query": { "match_all": {} } } } ] } }
The text was updated successfully, but these errors were encountered: