diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-18 15:46:58 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-02-18 15:46:58 +0000 |
commit | 9ef70a3754121b2161e440fa295963dbac4269bc (patch) | |
tree | 882d37a7d03f7a836fc3064e4de6f31add6453a6 /conf/modules.d/elastic.conf | |
parent | f1becea682b563d366add102cd88431f15182b26 (diff) | |
download | rspamd-9ef70a3754121b2161e440fa295963dbac4269bc.tar.gz rspamd-9ef70a3754121b2161e440fa295963dbac4269bc.zip |
[Feature] Preliminary import of the elasticsearch module
Diffstat (limited to 'conf/modules.d/elastic.conf')
-rw-r--r-- | conf/modules.d/elastic.conf | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/conf/modules.d/elastic.conf b/conf/modules.d/elastic.conf new file mode 100644 index 000000000..b0a96809f --- /dev/null +++ b/conf/modules.d/elastic.conf @@ -0,0 +1,21 @@ +elastic { + # Push update when 10 records are collected (10 if unset) + limit = 10; + # IP:port of Elasticsearch server + server = "localhost:9200"; + # Timeout to wait for response (5 seconds if unset) + timeout = 5; + # Elasticsearch template file (json format) + template_file = "/etc/rspamd/rspamd_template.json"; + # Kibana prebuild visualizations and dashboard template (json format) + kibana_file = '/etc/rspamd/kibana.json', + # Elasticsearch index name pattern + index_pattern = "rspamd-%Y.%m.%d"; + # Dump debug information + debug = false; + # Import kibana template + import_kibana = false; + .include(try=true,priority=5) "${DBDIR}/dynamic/elastic.conf" + .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/elastic.conf" + .include(try=true,priority=10) "$LOCAL_CONFDIR/override.d/elastic.conf" +} |