Browse Source

Update elastic.lua

tags/2.0
ol3k 5 years ago
parent
commit
175c584e68
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/plugins/lua/elastic.lua

+ 2
- 1
src/plugins/lua/elastic.lua View File

@@ -34,6 +34,7 @@ local elastic_template
local redis_params
local N = "elastic"
local E = {}
local HOSTNAME = util.get_hostname()
local connect_prefix = 'http://'
local enabled = true
local ingest_geoip_type = 'plugins'
@@ -146,7 +147,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'
r.rspamd_server = HOSTNAME
if r.user ~= 'unknown' then
r.direction = "Outbound"
end

Loading…
Cancel
Save