I have an rsyslog server at front and need to forward certain facilities to a remote server. I created a template for transport as HTTP body:
template(name="syslogforward" type="list") {
constant(value="POST / HTTP/1.0\n")
constant(value="Content-type: text/plain; charset=UTF-8\n")
constant(value="\n")
property(name="timereported")
constant(value=" ")
property(name="hostname")
constant(value=" ")
property(name="app-name")
constant(value=": ")
property(name="pri-text")
property(name="msg")
}
local1.* action(
Name="Forward_to_remote"
type="omfwd"
Template="syslogforward"
Target="xxx.xxx.xxx.xxx"
Port="8080"
Protocol="tcp"
)
I'd like to forward these messages encrypted with HTTPS, do I have to launch another process opening a local socket and doing the HTTPS or is there another way built in?