From: ol3k Date: Thu, 27 Jun 2019 10:06:00 +0000 (+0200) Subject: Add rspamd hostname to ES fields X-Git-Tag: 2.0~707^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=069a4291a5a32f01211ba695db0a35036b11461b;p=rspamd.git Add rspamd hostname to ES fields --- diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index 960516bf4..98ac7989c 100644 --- a/src/plugins/lua/elastic.lua +++ b/src/plugins/lua/elastic.lua @@ -146,6 +146,7 @@ local function get_general_metadata(task) r.user = task:get_user() or 'unknown' r.qid = task:get_queue_id() or 'unknown' r.action = task:get_metric_action('default') + r.rspamd_server = util.get_hostname() or 'unknown' if r.user ~= 'unknown' then r.direction = "Outbound" end