Splunk Dev

Does anyone know the formatting for doing a post using the splunkjs Endpoints function to an inputs.conf?

ohbuckeyeio
Communicator

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.

Labels (3)
0 Karma
Get Updates on the Splunk Community!

AppDynamics Summer Webinars

This summer, our mighty AppDynamics team is cooking up some delicious content on YouTube Live to satiate your ...

SOCin’ it to you at Splunk University

Splunk University is expanding its instructor-led learning portfolio with dedicated Security tracks at .conf25 ...

Credit Card Data Protection & PCI Compliance with Splunk Edge Processor

Organizations handling credit card transactions know that PCI DSS compliance is both critical and complex. The ...