Does anyone know the formatting for doing a post using the splunkjs Endpoints function to an inputs.conf?
I can get it like this:
let splunk_service = splunkjs.mvc.createService({owner: 'nobody'})
let endpoint = new splunkjs.Service.Endpoint(splunk_service, "data/inputs/mymod/test")
endpoint.get()
But a post isn’t working:
endpoint.post({'myfield': '123abc'})
Sorry for the formatting. I’m on mobile and see no way to add code blocks.