Skip to content

Commit

Permalink
sinks/elastic - change flow_id to 'keyword' to make searchable
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-mo committed Jan 28, 2020
1 parent 99f03b4 commit ad437fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sinks/elasticsearch/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ func (s *ElasticSink) installMappings(db string) error {
"order": 0,
"mappings":{
"properties":{
"flow_id": { "type":"keyword" },
"bytes_orig": { "type":"long" },
"bytes_ret": { "type":"long" },
"bytes_total": { "type":"long" }, // Calculated field.
"packets_orig": { "type":"long" },
"packets_ret": { "type":"long" },
"packets_total": { "type":"long" }, // Calculated field.
"flow_id": { "type":"long" },
"connmark": { "type":"integer" },
"src_addr": { "type":"ip" },
"src_port": { "type":"integer" },
Expand Down

0 comments on commit ad437fd

Please sign in to comment.