summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorLuke Bakken <lbakken@pivotal.io>2018-08-02 11:55:20 -0700
committerLuke Bakken <lbakken@pivotal.io>2018-08-02 11:55:20 -0700
commitf4cf1c19fba5d0c24c3e06eae4a8b355bfd87781 (patch)
treef66985c3e9267366497d760642c449d36ab53704 /priv
parent08c6675a979856d2444a249079268d1f494e7748 (diff)
downloadrabbitmq-server-git-f4cf1c19fba5d0c24c3e06eae4a8b355bfd87781.tar.gz
Add support for syslog server hostname
schlagert/syslog version 3.4.3 adds support for specifying a host name for `dest_host`, this PR supports it as well See this gist for my test procedure: git@gist.github.com:7ab6348839c3dc7b18b6662f024e089c.git
Diffstat (limited to 'priv')
-rw-r--r--priv/schema/rabbit.schema11
1 files changed, 2 insertions, 9 deletions
diff --git a/priv/schema/rabbit.schema b/priv/schema/rabbit.schema
index 862537bf61..82b9905848 100644
--- a/priv/schema/rabbit.schema
+++ b/priv/schema/rabbit.schema
@@ -1086,9 +1086,8 @@ end}.
{datatype, {enum, [true, false]}}
]}.
-{mapping, "log.syslog.ip", "syslog.dest_host", [
- {datatype, string},
- {validators, ["is_ip"]}
+{mapping, "log.syslog.host", "syslog.dest_host", [
+ {datatype, string}
]}.
{mapping, "log.syslog.port", "syslog.dest_port", [
@@ -1353,12 +1352,6 @@ fun(File) ->
element(1, ReadFile) == ok
end}.
-{validator, "is_ip", "string is a valid IP address",
-fun(IpStr) ->
- Res = inet:parse_address(IpStr),
- element(1, Res) == ok
-end}.
-
{validator, "non_negative_integer", "number should be greater or equal to zero",
fun(Int) when is_integer(Int) ->
Int >= 0