Skip to content

Commit

Permalink
testing: elastic 7.11 test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed Mar 18, 2021
1 parent 23342c6 commit 03f259f
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docker/tests/elastic-7.11/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: "3"

services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.2
ports:
- "9200:9200"
- "9300:9300"
environment:
- "discovery.type=single-node"
- "xpack.security.enabled=false"

# logstash:
# image: docker.elastic.co/logstash/logstash:7.11.2
# volumes:
# - "./logstash.conf:/etc/logstash.conf"
# - "./eve.json:/var/log/suricata/eve.json"
# command: -f /etc/logstash.conf

filebeat:
image: docker.elastic.co/beats/filebeat:7.11.2
volumes:
- ./filebeat.yml:/config/filebeat.yml:z
- /var/log/suricata:/var/log/suricata:z
command: -c /config/filebeat.yml -e -v

kibana:
image: docker.elastic.co/kibana/kibana:7.11.2
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
ports:
- "5601:5601"
10 changes: 10 additions & 0 deletions docker/tests/elastic-7.11/filebeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
filebeat.inputs:
- type: log
enabled: true
paths:
- /var/log/suricata/eve.json
json.keys_under_root: true
overwrite_keys: true

output.elasticsearch:
hosts: ["http://elasticsearch:9200"]
22 changes: 22 additions & 0 deletions docker/tests/elastic-7.11/logstash.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
input {
file {
path => "/var/log/suricata/eve.json"
codec => "json"
type => "eve"
start_position => "beginning"
}
}

filter {
mutate {
# This is actually an illegal rename, Elastic does
# not allow dots in field names.
#rename => { "host" => "host.name" }
}
}

output {
elasticsearch {
hosts => "http://elasticsearch:9200"
}
}

0 comments on commit 03f259f

Please sign in to comment.