Splunk Search

How to update a lookup table using REST API?

polymorphic
Communicator

Hi all

Hope someone can help me with this.

I am building a custom application, which extracts data from a db and saves it as a lookup table csv file, and uploading the file to the staging dir (lookup_tmp)

My problem is that when i try to move the file from the staging dir and replacing with the lookup () already in place, i get:

curl -k -u admin:password https://localhost:8089/servicesNS/admin/search/data/lookup-table-files/lookup.csv \

-d eai:data=/opt/splunk/var/run/splunk/lookup_tmp/lookup.csv

"This resource can be found at http://localhost:8089/en-US/servicesNS/admin/search/data/lookup-table-files/lookup.csv."

HTTP code: "303"

303 meaning that the result should be found elsewhere. Can anybody tell me where that is?
I have been searching high an low and can't find anything that matches this problem.

I expected the result to be some atom xml, but this is obviously not what I'm getting.

Any advice would be great.

Tags (5)
0 Karma
1 Solution

polymorphic
Communicator

Found the answer on this.
I was beeing blocked by a load balancer.

View solution in original post

polymorphic
Communicator

Found the answer on this.
I was beeing blocked by a load balancer.

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...