aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-03 20:13:02 +0100
committerGitHub <noreply@github.com>2020-05-03 20:13:02 +0100
commit6626734dbcc7d8877c60111eb26d8594d15df592 (patch)
tree534694bb13b157da4bdcf869718b102cf36402d7 /src/plugins
parent0967b2b78c5f1839097577dddcfc145522eef7b8 (diff)
parentc946d45b1b91b19048560a6c8bb75ae6e05a0d0c (diff)
downloadrspamd-6626734dbcc7d8877c60111eb26d8594d15df592.tar.gz
rspamd-6626734dbcc7d8877c60111eb26d8594d15df592.zip
Merge pull request #3355 from gauthierc/fixES7support
[fix] add support ElasticSearch>=7 for elastic module
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