Initial commit

This commit is contained in:
Ismo Vuorinen
2024-05-25 17:44:33 +03:00
committed by GitHub
commit cbbff74722
42 changed files with 1922 additions and 0 deletions

10
logstash/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
ARG ELK_VERSION
# https://github.com/elastic/logstash-docker
FROM docker.elastic.co/logstash/logstash:${ELK_VERSION}
HEALTHCHECK --interval=240s --timeout=120s --retries=5 \
CMD curl -s -XGET 'http://127.0.0.1:9600'
# Add your logstash plugins setup here
# Example: RUN logstash-plugin install logstash-filter-json

View File

@@ -0,0 +1,9 @@
---
http.host: "0.0.0.0"
## X-Pack security credentials
xpack.monitoring.elasticsearch.hosts: ${ELASTICSEARCH_HOST_PORT}
xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username: ${ELASTIC_USERNAME}
xpack.monitoring.elasticsearch.password: ${ELASTIC_PASSWORD}
xpack.monitoring.elasticsearch.ssl.certificate_authority: /certs/ca.crt

View File

@@ -0,0 +1,11 @@
# For per pipeline config, check docs: https://www.elastic.co/guide/en/logstash/current/logstash-settings-file.html
- pipeline.id: main
path.config: "/usr/share/logstash/pipeline/main.conf"
queue.type: memory
#- pipeline.id: second_pipeline
# path.config: "/usr/share/logstash/pipeline/second.conf"
# queue.type: persisted
# pipeline.batch.size: 125
# queue.page_capacity: 50mb

View File

@@ -0,0 +1,20 @@
input {
beats {
port => 5044
}
}
filter {
}
output {
elasticsearch {
hosts => "${ELASTICSEARCH_HOST_PORT}"
user => "${ELASTIC_USERNAME}"
password => "${ELASTIC_PASSWORD}"
ssl => true
ssl_certificate_verification => false
cacert => "/certs/ca.crt"
}
}