NLog.Splunk.Simple 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package NLog.Splunk.Simple --version 1.0.1                
NuGet\Install-Package NLog.Splunk.Simple -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.Simple" 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.Simple --version 1.0.1                
#r "nuget: NLog.Splunk.Simple, 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.Simple as a Cake Addin
#addin nuget:?package=NLog.Splunk.Simple&version=1.0.1

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

NLog.Splunk

Splunk target to send logs in splunk to receivers/simple

forked from: https://github.com/smashraid/NLog.Splunk


Getting Started

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

Install-Package NLog.Splunk.Simple

Then add it to your solution

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

Configuration

<target xsi:type="Splunk" 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" />

Sended data in splunk

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.4 2,912 2/14/2018
1.0.3 914 2/6/2018
1.0.2 941 2/6/2018
1.0.1 970 2/5/2018
1.0.0 945 2/5/2018

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