I have a simple configuration where I'm trying to post the syslog message to a REST application. But the omhttp module doesn't seem to be sending.
This is my configuration: module (load="omhttp") template(name="tpl1" type="string" string="{\"type\":\"syslog\", \"host\":\"%HOSTNAME%\"}") if (re_match($msg, "(.*REST.*)")) then { action( type="omhttp" server="192.168.55.4" serverport="8080" restpath="log" template="tpl1" action.resumeRetryCount="3" errorfile="/var/log/omhttp_errors.log" checkpath="" ) } This is the log that gets printed in /var/log/omhttp_errors.log when I inject a matching syslog message: { "request": { "url": "https:\/\/192.168.55.4:8080\/log", "postdata": "{\"type\":\"syslog\", \"host\":\"localhost\"}" }, "response": { "status": 0, "message": "NULL: curl request failed or no response" } } This curl command successfully sends the request to my REST application so I know that the application is running and the send is possible from the VM. curl -X POST -H "Content-Type: application/json" -d '{"name": "test"}' http://192.168.55.4:8080/log What am I doing wrong? I was using version 2202, but also tried upgrading to 2204. Thanks. Kevin _______________________________________________ rsyslog mailing list https://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.