commit 069a429: Add rspamd hostname to ES fields

GitHub noreply at github.com
Thu Jun 27 18:35:05 UTC 2019


Author: ol3k
Date: 2019-06-27 12:06:00 +0200
URL: https://github.com/rspamd/rspamd/commit/069a4291a5a32f01211ba695db0a35036b11461b (refs/pull/2947/head)

Add rspamd hostname to ES fields

---
 src/plugins/lua/elastic.lua | 1 +
 1 file changed, 1 insertion(+)

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


More information about the Commits mailing list