aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorGauthier C <gc@ac-lille.fr>2020-04-27 11:14:10 +0200
committerGauthier C <gc@ac-lille.fr>2020-04-27 11:14:10 +0200
commitc946d45b1b91b19048560a6c8bb75ae6e05a0d0c (patch)
tree1cfdc76b45f37974579af66a102b8d75ad608f97 /src/plugins
parent544e12fbe78f85bf706d90da30180d353fbe203c (diff)
downloadrspamd-c946d45b1b91b19048560a6c8bb75ae6e05a0d0c.tar.gz
rspamd-c946d45b1b91b19048560a6c8bb75ae6e05a0d0c.zip
[fix] add support ElasticSearch>=7 for elastic module
Since version 7.x of ElasticSearch, logs type is not supported. Close #3324
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/elastic.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua
index f0d339205..f0dd98f78 100644
--- a/src/plugins/lua/elastic.lua
+++ b/src/plugins/lua/elastic.lua
@@ -71,7 +71,7 @@ local function elastic_send_data(task)
local tbl = {}
for _,value in pairs(rows) do
table.insert(tbl, '{ "index" : { "_index" : "'..es_index..
- '", "_type" : "logs" ,"pipeline": "rspamd-geoip"} }')
+ '", "_type" : "_doc" ,"pipeline": "rspamd-geoip"} }')
table.insert(tbl, ucl.to_format(value, 'json-compact'))
end