splunk / terraform-provider-splunk

Terraform Provider for Splunk
Mozilla Public License 2.0
103 stars 77 forks source link

Unable to Create Saved Search alert #181

Open bhosaleswapnil2103 opened 10 months ago

bhosaleswapnil2103 commented 10 months ago

I do have Splunk cloud trail instance & I am referring below 2 links for Creating alert.

https://registry.terraform.io/providers/splunk/splunk/latest/docs

provider "splunk" { url = "prd-p-t5l7m.splunkcloud.com" auth_token = "xxxxxxxx" insecure_skip_verify = true }

https://registry.terraform.io/providers/splunk/splunk/latest/docs/resources/saved_searches

But it errors out saying

splunk_saved_searches.new-search-01: Creating... ╷ │ Error: 404 Not Found: <!DOCTYPE html PUBLIC

with splunk_saved_searches.new-search-01, │ on main.tf line 15, in resource "splunk_saved_searches" "new-search-01": │ 15: resource "splunk_saved_searches" "new-search-01" {

ojensen5115 commented 6 months ago
  1. make sure you have the REST API enabled (requires a support ticket)
  2. you'll need a port specified in your provider url (e.g. prd-p-t5l8m.splunkcloud.com:8089)