terraform-provider-splunk icon indicating copy to clipboard operation
terraform-provider-splunk copied to clipboard

Provider fails when when creating a splunk_inputs_monitor for a windows share

Open andrstor opened this issue 4 years ago • 1 comments

Hi,

I'm trying to use the provider to create a File & Directory input with an windows file-share using this configuration

resource "splunk_inputs_monitor" "monitor" {
  name       = "\\\\${local.environment_name}\\hn_logfiles"
  recursive  = true
  sourcetype = "something"
  index      = "something"
  host       = local.environment_name
}

The input is created in splunk, and is setup correctly but the run fails with

Error: Http Error: [404] 404 Not Found {"messages":[{"type":"ERROR","text":"Could not find object id=%5C%5Cmedsplunk%5Chn_logfiles"}]}

Consecutive runs (plan/apply) fails with this same error.

Is this a bug in the provider or am i just doing it wrong?

The Splunk version we are on is 7.0.2

Thanks.

andrstor avatar Feb 11 '21 18:02 andrstor

Hi @andrstor Thanks for bringing this up. I will have to test this out on a windows machine. It could be a bug with the path syntax.

anushjay avatar Feb 22 '21 18:02 anushjay