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

 

 

Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...