Getting Data In

Help to create a new data input via REST API, plz

ventilyator
New Member

I'm trying to configure splunk via REST API. Can anybody show working POST-request to create new data input? Just 1 complete example plz. Thanks.

Tags (3)
0 Karma

Leo
Splunk Employee
Splunk Employee
curl -k -u admin:changeme -d "name=%2Ftmp%2Fthelog.log%0A" https://localhost:8089/services/data/inputs/monitor

After this request Splunk should index '/tmp/thelog.log'. Note that the argument is url-encoded.

Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...