• Stars
    star
    176
  • Rank 216,001 (Top 5 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 10 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

NLog target for Elasticsearch

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" uri="http://localhost:9200/" />
    </target>
  </targets>
  <rules>
    <logger name="*" minlevel="Info" writeTo="elastic" />
  </rules>
</nlog>

Versions

Versioning follows elasticsearch versions. E.g.

Version Elasticsearch Version NLog Version
7.x 7.x 4.6.x
6.x 6.x 4.5.x