Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.16 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.16 KB

Elmah.Io.ElasticSearch

Elmah.Io.ElasticSearch is a ElasticSearch storage backend for ELMAH.

How

Elmah.Io.ElasticSearch is configured pretty much like every other storage implementation for Elmah. To get started, add the following to your web.config:

<connectionStrings>
    <add name="ElmahIoElasticSearch" connectionString="http://localhost:9200"/>
</connectionStrings>

<elmah>
    <errorLog type="Elmah.Io.ElasticSearch.ElasticSearchErrorLog, Elmah.Io.ElasticSearch" connectionStringName="ElmahIoElasticSearch" />
</elmah>

Replace the connection string URL with your ElasticSearch URL and add the elmah config section as explained on the offical ELMAH site.

That's it, dudes!

If you don't like the default generated index named elmah, you should override it by specifying a default index name:

<errorLog
    type="Elmah.Io.ElasticSearch.ElasticSearchErrorLog, Elmah.Io.ElasticSearch"
    connectionStringName="ElmahIoElasticSearch"
    defaultIndex="myindex" />

Respect

Build by TeamCity