- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
gfuente
Motivator
11-20-2015
02:14 AM
Hello
would it be possible to create dinamically (with an script) a new website input, through the splunk Rest API.
If so, what would be the endpoint needed to be called?
Thanks
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
gfuente
Motivator
11-20-2015
06:33 AM
Hello
Finally i found that it can be done calling this endpoint
curl -k -u admin:changeme https://localhost:8089/servicesNS/nobody/website_inputs/data/inputs/web_input -d name=Name -d url=http://urltomonitor -d index=main -d interval=24h -d selector=td -d sourcetype=website -d title=myinput
hope it helps to anyone willing to do the same
Regards
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
LukeMurphey
Champion
11-20-2015
11:11 AM
BTW: could you clarify why you want to make inputs via a REST API? I'm asking because I suspect there may be an enhancement request to the Website Input app that could solve this problem.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
gfuente
Motivator
11-20-2015
06:33 AM
Hello
Finally i found that it can be done calling this endpoint
curl -k -u admin:changeme https://localhost:8089/servicesNS/nobody/website_inputs/data/inputs/web_input -d name=Name -d url=http://urltomonitor -d index=main -d interval=24h -d selector=td -d sourcetype=website -d title=myinput
hope it helps to anyone willing to do the same
Regards
