NLog target for Elasticsearch
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src Elasticsearch 6 Mar 28, 2018
.gitignore support for .net standard Mar 15, 2017
LICENSE Initial commit Nov 19, 2014
README.md Added NuGet Badge Mar 28, 2018

README.md

NLog.Targets.ElasticSearch

Build Status

NuGet Pre Release

The Elasticsearch target works best with the BufferingWrapper target applied. By default the target assumes an Elasticsearch node is running on the localhost on port 9200.

See wiki for parameters.

<nlog>
  <extensions>
    <add assembly="NLog.Targets.ElasticSearch"/>
  </extensions>
  <targets>
    <target name="elastic" xsi:type="BufferingWrapper" flushTimeout="5000">
  	  <target xsi:type="ElasticSearch"/>
    </target>
  </targets>
  <rules>
    <logger name="*" minlevel="Info" writeTo="elastic" />
  </rules>
</nlog>