Splunk Enterprise

How to Edit inputs.conf Using Splunk API?

AstinSebastian
New Member

Hi Splunk Community,

I am looking to edit the inputs.conf file programmatically via the Splunk API. Specifically, I want to know:

Is there an API endpoint available to update the inputs.conf file?
If yes, what would be the correct method to achieve this (e.g., required endpoint, parameters, or payload)?

I understand that inputs.conf primarily configures data inputs, and certain operations might have to be performed via the REST API or directly through configuration file updates. Any documentation or examples regarding:

Supported Splunk API endpoints for modifying input configurations.
Best practices for editing inputs.conf programmatically.
Any necessary permissions or prerequisites to perform such updates.

0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

I cannot recall that there are this kind of api at least supported by Splunk.

Of course you can do it by yourself if you really want, but probably there is a better way to do what you are aiming for?

So what is the issue which you are trying to solve?

r. Ismo

0 Karma

AstinSebastian
New Member

Hi Ismo,

I am working on developing an app that updates the values in the inputs.conf file from the setup.xml configuration. Additionally, the app retrieves values from the inputs.conf file and loads them into Splunk.

0 Karma

isoutamo
SplunkTrust
SplunkTrust

You probably have looked this https://dev.splunk.com/enterprise/tutorials/module_setuppages/plansetup ?

One place where you could look help is CIM app. Another one is TA for *nix where are modified those inputs values on setup screen.

0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...