NLog.Splunk.Simple 1.0.4

dotnet add package NLog.Splunk.Simple --version 1.0.4                
NuGet\Install-Package NLog.Splunk.Simple -Version 1.0.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NLog.Splunk.Simple" Version="1.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NLog.Splunk.Simple --version 1.0.4                
#r "nuget: NLog.Splunk.Simple, 1.0.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NLog.Splunk.Simple as a Cake Addin
#addin nuget:?package=NLog.Splunk.Simple&version=1.0.4

// Install NLog.Splunk.Simple as a Cake Tool
#tool nuget:?package=NLog.Splunk.Simple&version=1.0.4                

NLog.Splunk.Simple

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

NuGet


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

<target type="SplunkSimple" name="SplunkRestInfo" host="{SPLUNK_SERVER_URL}" username="{USERNAME}" password="{PASSWORD}"
          source="{SOURCE_IN_SPLUNK}" sourceType="{SOURCE_TYPE}"
          layout="${longdate}|${level:uppercase=true}|${logger}|${message} ${exception:format=tostring}">
</target>

Don't forget to add your rule

<logger name="*" writeTo="SplunkRestInfo" minLevel="Info" />

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

Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 2,911 2/14/2018
1.0.3 913 2/6/2018
1.0.2 939 2/6/2018
1.0.1 968 2/5/2018
1.0.0 944 2/5/2018

Send logs to https://{SPLUNKSERVER}:8089/services/receivers/simple