Skip to content

Commit

Permalink
Updated filebeat config for added security
Browse files Browse the repository at this point in the history
  • Loading branch information
MSAdministrator committed May 13, 2021
1 parent 157fa53 commit 85a6fec
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions filebeat/config/filebeat.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
name: filebeat
setup.template:
enabled: true
output.elasticsearch.username: ${ELASTIC_USERNAME}
output.elasticsearch.password: ${ELASTIC_PASSWORD}
path.config: ${CONFIG_DIR}

filebeat.inputs:
- type: tcp
enabled: true
max_message_size: 10MiB
host: "filebeat:9000"
# - type: log
# paths:
# - /var/log/system.log
# - /var/log/wifi.log
# - type: log
# paths:
# - "/var/log/apache2/*"
# fields:
# apache: true
# fields_under_root: true

output.logstash:
hosts: ["logstash:5044"]
# ssl.certificate_authorities: ["${CONFIG_DIR}/ca.crt"]
#ssl.certificate: "${CONFIG_DIR}/filebeat.crt"
#ssl.key: "${CONFIG_DIR}/filebeat.key"
enabled: true
hosts: ["logstash:5045"]
ssl.certificate_authorities: ["${CONFIG_DIR}/ca.crt"]
ssl.certificate: "${CONFIG_DIR}/filebeat.crt"
ssl.key: "${CONFIG_DIR}/filebeat.key"

output.elasticsearch:
enabled: false
hosts: ["https://elasticsearch:9200"]
ssl.certificate_authorities: ["${CONFIG_DIR}/ca.crt"]
ssl.certificate: "${CONFIG_DIR}/filebeat.crt"
ssl.key: "${CONFIG_DIR}/filebeat.key"

0 comments on commit 85a6fec

Please sign in to comment.