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

sumologic_log_search does not move existing log search in proper folder

Open pdobrzanski-appfire opened this issue 10 months ago • 1 comments

Hello,

I am moving existing dashboards and queries into SumoLogic Library (not a personal folder).

For folder it works ok like this

resource "sumologic_dashboard" "main" {
  folder_id = "00000000052FB492"
  ...
  }

However, for log search like:

  name = "Some name"
  description = "Some description"
  parent_id = "000000000532E867"

terraform shows plan properly and executes ok.

        id                  = "000000000537CD2C"
        name                = "Some name"
      ~ parent_id           = "0000000003F43AB9" -> "000000000532E867"
        # (4 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

Unfortunately, there is no change in SL and plan shows the difference again. I thought this might be permission issue - but copying existing into folder worked ok.

When those existing log queries were removed (comment out and terraform apply) and recreated - they were put in correct folder. So looks like problem is only with update.

Terraform v1.9.5 sumologic/sumologic v2.31.5

pdobrzanski-appfire avatar Jan 14 '25 13:01 pdobrzanski-appfire

Actually looks like duplicate of https://github.com/SumoLogic/terraform-provider-sumologic/issues/700

pdobrzanski-appfire avatar Jan 14 '25 15:01 pdobrzanski-appfire