diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-05-03 20:13:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-03 20:13:02 +0100 |
commit | 6626734dbcc7d8877c60111eb26d8594d15df592 (patch) | |
tree | 534694bb13b157da4bdcf869718b102cf36402d7 /src/plugins | |
parent | 0967b2b78c5f1839097577dddcfc145522eef7b8 (diff) | |
parent | c946d45b1b91b19048560a6c8bb75ae6e05a0d0c (diff) | |
download | rspamd-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.lua | 2 |
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 |