Skip to main content

Logging Provider: Splunk

What are Logging Providers?

Logging to NAME

Description

Logs messages to Splunk SIEM servers. Supports logging to both the on-prem installation and the cloud service.

Stats

Namesplunk
Version2
ConfigurationRootPSFramework.Logging.Splunk
Supports DataTrue
InstallationNot Required

Properties

Properties are used to control the behavior of the Provider. They can be specified using Set-PSFLoggingProvider or provided using the Configuration system.

NameDefault ValueDescription
UrlThe url to the Splunk http event collector. Example: https://localhost:8088/services/collector
TokenThe token used to authenticate to the Splunk event collector.
Properties'Timestamp', 'Message', 'Level', 'Tags', 'FunctionName', 'ModuleName', 'Runspace', 'Username', 'ComputerName', 'TargetObject', 'Data'The message properties to write to Splunk.
LogNameUndefinedName associated with the task. Included in each entry, making it easier to reuse the same http event collector for multiple tasks.
IgnoreCertFalseWhether the server certificate should be validated or not.

Notes

Enabling receiving events from PowerShell on the Splunk end

Splunk does not automatically listen for data from PowerShell. To enable receiving logs, you first need to configure this configurable service correctly.

The Logging Provider tries to push data to a http listener on Splunk. For example, this guide shows how to set that up.

Splunk Cloud service

Logging to the cloud version of Splunk works exactly the same way as on-prem - configure the listener, then register it with the hostname of your cloud instance: 'https://instance-hostname:8088/services/collector'