HashiCorp Cloud Platform
Configure HCP Vault Dedicated audit log streaming to Splunk
Prerequisites
To configure audit logs streaming to Splunk, you will need to have:
Have access to a paid Splunk Cloud or Enterprise account.
Your Splunk HEC and token.
A HCP account with the Admin role assigned
An essentials or standard tier HCP Vault Dedicated cluster
Enable audit logs streaming
From the HCP Vault Dedicated cluster Overview page, select the Audit Logs view.
Click Enable Streaming.
From the Enable audit logs streaming view, select Splunk as the provider and click Next.
Under Splunk configuration, enter your HTTP Event Collector (HEC) Endpoint URL and event collector Token.
Click Save.
Refer to the Splunk documentation for instructions on log querying.
Example Terraform configuration (optional)
Refer to the Terraform Registry hcp_vault_cluster documentation
for more information.
resource "hcp_vault_cluster" "example" {
cluster_id = "vault-cluster"
hvn_id = hcp_hvn.example.hvn_id
tier = "standard_large"
audit_log_config {
splunk_token = "splunk_token"
splunk_hecendpoint = "splunk_hecendpoint"
}
}
Edit the audit log streaming configuration (optional)
To edit a audit log streaming integration, perform the following steps.
From the Audit Logs page, click on the Manage drop-down, then Edit configuration.
Edit the configuration, then click Save.
Disable audit log streaming (optional)
To disable a audit log streaming integration, from the Audit Logs page, click on the Manage drop-down, then Disable streaming.