Hello
Jayakrishnan,
Thanks for the clarification. So, if you run a script in the wazuh server to pull events from some other tool, and you need to send it to Wazuh, you just need to send the event to a local socket (located in /var/ossec/queue/sockets/queue).
s = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
s.connect(self.wazuh_queue)
s.send("{header}{msg}".format(header=self.msg_header, msg=json_msg if dump_json else msg).encode())
s.close()
I hope it helps.