Browse Source

[Minor] Fix ES plugin

tags/1.9.2
Vsevolod Stakhov 5 years ago
parent
commit
750dc61797
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/plugins/lua/elastic.lua

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

@@ -36,6 +36,7 @@ local N = "elastic"
local E = {}
local connect_prefix = 'http://'
local enabled = true
local ingest_geoip_type = 'plugins'
local settings = {
limit = 500,
index_pattern = 'rspamd-%Y.%m.%d',
@@ -448,8 +449,6 @@ if redis_params and opts then

if settings.ingest_module then
ingest_geoip_type = 'modules'
else
ingest_geoip_type = 'plugins'
end

settings.upstream = upstream_list.create(rspamd_config,

Loading…
Cancel
Save