Splunk Search

Change default APP in a rest API call for a inputlookup

kilimche
Explorer

Hi could you please give me an advice how to edit a call to the Splunk Rest API with the following parameter:

search | inputlookup mylookup.csv

The goal is to use another APP, not the user default one.

I tried the following but it gave me same result:

| inputlookup mylookup.csv

| eval app_name = $env:MyNewApp$ 

 

Thanks a lot!

Labels (1)
0 Karma
1 Solution

kilimche
Explorer

Hello

I was able to change the relative URL and successfully get the new app data -changing the default application search. 

I used this article: 

https://community.splunk.com/t5/Getting-Data-In/REST-API-with-namespace/m-p/9596

 

My API call looks like

https://splunkserver:8089/servicesNS/YOUR_USERNAME/TARGET_NAMESPACE/search/jobs
The TargetNamespace is the new APP (search header).

 

Thanks

 

 

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

You may find some helpful information at https://docs.splunk.com/Documentation/Splunk/8.2.3/RESTUM/RESTusing#Namespace

---
If this reply helps you, Karma would be appreciated.
0 Karma

kilimche
Explorer

Thanks, 

I am still not able to make this work

0 Karma

richgalloway
SplunkTrust
SplunkTrust

It would help if you shared the call you're trying.

---
If this reply helps you, Karma would be appreciated.

kilimche
Explorer

Hello

I was able to change the relative URL and successfully get the new app data -changing the default application search. 

I used this article: 

https://community.splunk.com/t5/Getting-Data-In/REST-API-with-namespace/m-p/9596

 

My API call looks like

https://splunkserver:8089/servicesNS/YOUR_USERNAME/TARGET_NAMESPACE/search/jobs
The TargetNamespace is the new APP (search header).

 

Thanks

 

 

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...