Skip to content

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

License

Notifications You must be signed in to change notification settings

talfirevic/Elmah.Io.ElasticSearch

 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • C# 99.5%
  • Classic ASP 0.5%