An open API service indexing awesome lists of open source software.

https://github.com/valeev/nlog.splunk

Custom target for pushing logs by NLog to Splunk
https://github.com/valeev/nlog.splunk

csharp nlog nlog-target nuget nuget-packages splunk

Last synced: 3 months ago
JSON representation

Custom target for pushing logs by NLog to Splunk

Awesome Lists containing this project

README

          

NLog.Splunk.Simple
===================

NLog target for sending logs to splunk by /receivers/simple

[![NuGet](https://img.shields.io/nuget/v/nlog.svg)](https://www.nuget.org/packages/NLog.Splunk.Simple)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg)]()

----------

Getting Started
-------------

Use the GUI or the following command in the Package Manager Console

Install-Package NLog.Splunk.Simple

Not necessary but sometimes you have to register custom target, try to register it in Global.asax with a next code

ConfigurationItemFactory.Default.Targets.RegisterDefinition("SplunkSimple", typeof(SplunkSimple));

----------

Configuration
-------------


Don't forget to add your rule

How to create custom target for NLog:
https://github.com/nlog/nlog/wiki/How-to-write-a-custom-target