add: logstash

This commit is contained in:
2024-11-23 17:51:05 +00:00
parent e2802f3c36
commit c34e6fc81d
5 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
input {
beats {
port => 5044
}
}
output {
opensearch {
hosts => ["https://atlantishq.de:9200"]
index => "filebeat-dev-%{+YYYY.MM.dd}"
ssl_certificate_verification => false
user => "logstash"
password => "{{ opensearch_logstash_password }}"
}
}

View File

@@ -0,0 +1,12 @@
version: "3.8"
services:
logstash:
image: opensearchproject/logstash-oss-with-opensearch-output-plugin:8.9.0
container_name: logstash
ports:
- "5044:5044"
volumes:
- /data/logstash/config:/usr/share/logstash/config
- /data/logstash/pipeline:/usr/share/logstash/pipeline
environment:
LS_JAVA_OPTS: "-Xmx256m -Xms256m"

View File

@@ -0,0 +1,2 @@
http.host: "0.0.0.0"
#xpack.monitoring.enabled: false

View File

@@ -0,0 +1,2 @@
- pipeline.id: main
path.config: "/usr/share/logstash/pipeline/logstash.conf"