Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

splunk_lookup_table_file error when reading state on splunk cloud #204

Open
aplunk-nydig opened this issue Dec 11, 2024 · 0 comments
Open

Comments

@aplunk-nydig
Copy link

aplunk-nydig commented Dec 11, 2024

Issue

When executing terraform plan with the splunk_lookup_table_file resource I see the following error:

Planning failed. Terraform encountered an error while generating this plan.

╷
│ Error: 404 Not Found: Path was not found
│ 
│   with splunk_lookup_table_file.lookup_file,
│   on lookups.tf line 13, in resource "splunk_lookup_table_file" "lookup_file:
│   13: resource "splunk_lookup_table_file" "lookup_file" {
│ 

Debugging Steps

When manually visiting the url in the browser I see a similar error:

https://<my splunk instance>/en-US/splunkd/__raw/services/data/lookup_edit?namespace=search&owner=nobody&lookup_file=lookup.csv&lookup_type=csv

Status code: 403 Forbidden
Response Text:  No path was provided

Workaround

However when I execute the following command in the browser the file is downloaded:

https://<my splunk instance>/en-US/splunkd/__raw/services/data/lookup_edit/lookup_as_file?namespace=search&owner=nobody&lookup_file=lookup.csv&lookup_type=csv

Proposed Fix

For some versions of splunk cloud we need to support lookup_edit/lookup_as_file or some other method of downloading the lookup file for the splunk_lookup_table_file read operations.

Environment Information

Splunk cloud version:

Version:
Experience: Victoria

Terraform version:

terraform --version
Terraform v1.9.8
on darwin_arm64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant