PoShLog.Sinks.Splunk is extension module for the PoShLog logging module. It contains a sink that publishes log messages to a Splunk HTTP Event Collector.
Core functionality is provided by the Serilog.Sinks.Splunk package.
If you are familiar with PowerShell, skip to Installation section. For more detailed installation instructions check out Getting started wiki.
To install PoShLog.Sinks.Splunk, run following snippet from PowerShell
Install-Module -Name PoShLog.Sinks.Splunk
Import-Module PoShLog
Import-Module PoShLog.Sinks.Splunk
New-Logger |
Add-SinkSplunk -Uri 'https://your-splunkhost:8088' -Token '00000000-0000-0000-0000-000000000000' |
Start-Logger
Write-InfoLog 'Hurray, my first log message in Splunk!'
# Don't forget to close the logger
Close-Logger
These examples are just to get you started fast. For more detailed documentation please check wiki.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
- Icon made by Smashicons from www.flaticon.com.