Splunk v1.2.14 published on Monday, Nov 18, 2024 by Pulumi
Splunk Provider
Installation
The splunk provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@pulumi/splunk
- Python:
pulumi-splunk
- Go:
github.com/pulumi/pulumi-splunk/sdk/go/splunk
- .NET:
Pulumi.Splunk
- Java:
com.pulumi/splunk
Overview
The Splunk provider can interact with the resources supported by Splunk. The provider needs to be configured with the proper credentials before it can be used.
Example Usage
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: nodejs
config:
splunk:insecureSkipVerify:
value: true
splunk:password:
value: changeme
splunk:url:
value: localhost:8089
splunk:username:
value: admin
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: python
config:
splunk:insecureSkipVerify:
value: true
splunk:password:
value: changeme
splunk:url:
value: localhost:8089
splunk:username:
value: admin
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: dotnet
config:
splunk:insecureSkipVerify:
value: true
splunk:password:
value: changeme
splunk:url:
value: localhost:8089
splunk:username:
value: admin
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: go
config:
splunk:insecureSkipVerify:
value: true
splunk:password:
value: changeme
splunk:url:
value: localhost:8089
splunk:username:
value: admin
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: yaml
config:
splunk:insecureSkipVerify:
value: true
splunk:password:
value: changeme
splunk:url:
value: localhost:8089
splunk:username:
value: admin
# Pulumi.yaml provider configuration file
name: configuration-example
runtime: java
config:
splunk:insecureSkipVerify:
value: true
splunk:password:
value: changeme
splunk:url:
value: localhost:8089
splunk:username:
value: admin
Configuration Reference
Below arguments for the provider can also be set as environment variables.
url
orSPLUNK_URL
- (Required) The URL for the Splunk instance to be configured. (The provider useshttps
as the default schema as prefix to the URL)username
orSPLUNK_USERNAME
- (Optional) The username to access the Splunk instance to be configured.password
orSPLUNK_PASSWORD
- (Optional) The password to access the Splunk instance to be configured.authToken
orSPLUNK_AUTH_TOKEN
- (Optional) Use auth token instead of username and password to configure Splunk instance. If specified, auth token takes priority over username/password.insecureSkipVerify
orSPLUNK_INSECURE_SKIP_VERIFY
- (Optional) Insecure skip verification flag (Defaults totrue
)timeout
orSPLUNK_TIMEOUT
- (Optional) Timeout when making calls to Splunk server. (Defaults to60 seconds
)
(NOTE: Auth token can only be used with certain type of Splunk deployments. Read more on authentication with tokens here: https://docs.splunk.com/Documentation/Splunk/latest/Security/Setupauthenticationwithtokens)