I want to create kind of custom connector whenever there is alert triggered by Elastic rule it will take the details and create incident in ServiceNow.
I have created a webhook in Elastic connector and a empty POST scripted API in ServiceNow but not sure how to move forward, need help in getting started.
you should be able to send a REST API request for creating an Incident using the below ServiceNow table API. Pls see curl example below from ServiceNow api docs.
https://developer.servicenow.com/dev.do#!/reference/api/latest/rest/c_TableAPI#table-POST