Hi @Vishal_Kagde,
Looks like, your JSON payload is too minimal. Splunk HEC expects an event field plus metadata like time, host and sourcetype. Even with 200 OK, missing these can prevent indexing.
Can you try this if it works:
JSONObject payload = new JSONObject();
payload.put("time", System.curre...