NLog.Splunk 1.0.1

dotnet add package NLog.Splunk --version 1.0.1
NuGet\Install-Package NLog.Splunk -Version 1.0.1
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" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NLog.Splunk --version 1.0.1
#r "nuget: NLog.Splunk, 1.0.1"
#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 as a Cake Addin
#addin nuget:?package=NLog.Splunk&version=1.0.1

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

NLog.Splunk

Splunk target to send logs in splunk


Getting Started

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

Install-Package NLog.Splunk

Then add it to your solution

ConfigurationItemFactory.Default.Targets.RegisterDefinition("Splunk", typeof(SplunkTarget));

Configuration

For async configuration you can use with BufferingWrapper

<target xsi:type="BufferingWrapper" 
name="f" 
bufferSize="100" 
slidingTimeout="true" 
flushTimeout="10000" >
    <target xsi:type="Splunk"               
    layout="${longdate} | ${uppercase:${level}} | ${message} | ${exception}"
    host="{url-to-splunk}"
    username="{your-username}"
    password="{your-password}"
    index="{your-index}"
    source="{your-source}"
    sourceType="{your-source-type}"
    />
</target>

Otherwise you can use in normal way

<target xsi:type="Splunk" 
name="f"             
layout="${longdate} | ${uppercase:${level}} | ${message} | ${exception}"
host="{url-to-splunk}"
username="{your-username}"
password="{your-password}"
index="{your-index}"
source="{your-source}"
sourceType="{your-source-type}"
/>

Don't forget to add your rules

<logger name="*" minlevel="Info" writeTo="f" />

enter image description here

Product Compatible and additional computed target framework versions.
.NET Framework net452 is compatible.  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.1 1,314 3/2/2018
1.0.0 1,008 2/28/2017

Splunk Target for NLog.