mikepowell / PoShLog.Sinks.Splunk

PoShLog.Sinks.Splunk is an extension module for the PoShLog core library. It contains a sink that publishes log messages to a Splunk HTTP Event Collector.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PoShLog.Sinks.Splunk

psgallery PowerShell Gallery psgallery

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.

Getting started

If you are familiar with PowerShell, skip to Installation section. For more detailed installation instructions check out Getting started wiki.

Installation

To install PoShLog.Sinks.Splunk, run following snippet from PowerShell

Install-Module -Name PoShLog.Sinks.Splunk

Usage

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

Documentation

These examples are just to get you started fast. For more detailed documentation please check wiki.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Authors

Mike Powell

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

About

PoShLog.Sinks.Splunk is an extension module for the PoShLog core library. It contains a sink that publishes log messages to a Splunk HTTP Event Collector.

License:MIT License


Languages

Language:PowerShell 100.0%