mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Added sending messages to ElasticSearch over HTTP.
This commit is contained in:
parent
95f000738b
commit
7bee0b0d8e
11 changed files with 266 additions and 127 deletions
|
@ -2,3 +2,4 @@
|
|||
@load ./postprocessors
|
||||
@load ./writers/ascii
|
||||
@load ./writers/dataseries
|
||||
@load ./writers/elasticsearch
|
25
scripts/base/frameworks/logging/writers/elasticsearch.bro
Normal file
25
scripts/base/frameworks/logging/writers/elasticsearch.bro
Normal file
|
@ -0,0 +1,25 @@
|
|||
module LogElasticSearch;
|
||||
|
||||
export {
|
||||
## Name of the ES cluster
|
||||
const cluster_name = "elasticsearch" &redef;
|
||||
|
||||
## ES Server
|
||||
const server_host = "127.0.0.1" &redef;
|
||||
|
||||
## ES Port
|
||||
const server_port = 9200 &redef;
|
||||
|
||||
## Name of the ES index
|
||||
const index_name = "bro-logs" &redef;
|
||||
|
||||
## The ES type prefix comes before the name of the related log.
|
||||
## e.g. prefix = "bro_" would create types of bro_dns, bro_software, etc.
|
||||
const type_prefix = "" &redef;
|
||||
|
||||
## The batch size is the number of messages that will be queued up before
|
||||
## they are sent to be bulk indexed.
|
||||
## Note: this is mainly a memory usage parameter.
|
||||
const batch_size = 10000 &redef;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue