diff options
author | ol3k <c.crampen@gmail.com> | 2019-06-27 12:06:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-27 12:06:00 +0200 |
commit | 069a4291a5a32f01211ba695db0a35036b11461b (patch) | |
tree | 63761d64ca4626338d9b111d2084ef7cee15c53f | |
parent | b7dbb7d1c7ca8716996b324e6e16de87c6646d7c (diff) | |
download | rspamd-069a4291a5a32f01211ba695db0a35036b11461b.tar.gz rspamd-069a4291a5a32f01211ba695db0a35036b11461b.zip |
Add rspamd hostname to ES fields
-rw-r--r-- | src/plugins/lua/elastic.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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 |