Security

Splunk remote query

Bluekeeper
Engager

Hi, i want to move a file from a client into Deployment Server via Search Head. I was thinking of something like 

| makeresults
| eval content="the content of text file that need to be sent over to DS."
| search 
    [ | rest splunk_server=ds /services/search/jobs search="| outputlookup test.csv" ]



Bluekeeper_0-1738917524307.png

 


but it seems that the rest command does not support anything except search (it does not work with pipes after search either),  but it is not the same using rest from cli or rest queries from outside Splunk. 

Since it would be a challenge to store credentials in an app protected, doing it using script or cli would be my last option. Doing it using the web interface would be better for further development.

Thanks

Tags (2)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @Bluekeeper ,

sorry but I don't understand your requirement: why do you want to do this?

About your question: REST is used only for searching.

About credentials, you could try to store them using the encryption from Splunk, but I don't understand what you want to do.

I can suppose that you whould modify some conf file in the deployment-apps folder of the Deployment Server, in this case the only solution is a script outside the Splunk web gui.

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @Bluekeeper ,

sorry but I don't understand your requirement: why do you want to do this?

About your question: REST is used only for searching.

About credentials, you could try to store them using the encryption from Splunk, but I don't understand what you want to do.

I can suppose that you whould modify some conf file in the deployment-apps folder of the Deployment Server, in this case the only solution is a script outside the Splunk web gui.

Ciao.

Giuseppe

Bluekeeper
Engager

Yes i wanted to be able to upload a conf file from search head into the Deployment Server which would results it being pulled by UFs but as you said it's not possible through the rest api and the GUI. Can you provide any references on how to safely use credentials using splunk encryption so i don't leave credentials unprotected ?

0 Karma
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!

Cisco Data Fabric from Architecture to Investigation, Better SOC Visibility, and More ...

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

The Trust Gap: Why a Data Foundation is Fundamental to an Agentic Enterprise

The Trust Gap: Why a data foundation is fundamental to an  Agentic Enterprise.   Agentic AI is transforming ...

Data Management Digest – September 2026

    Welcome to the September 2026 edition of Data Management Digest! September brought a fresh wave of ...