]> source.dussan.org Git - rspamd.git/commitdiff
Add rspamd hostname to ES fields 2947/head
authorol3k <c.crampen@gmail.com>
Thu, 27 Jun 2019 10:06:00 +0000 (12:06 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Jun 2019 10:06:00 +0000 (12:06 +0200)
src/plugins/lua/elastic.lua

index 960516bf4192006a8e488e786739b965c2615ef5..98ac7989cd79942b28df510e3744525de4caad26 100644 (file)
@@ -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