add infra app logstash for omada syslog

This commit is contained in:
2024-07-10 19:00:34 +10:00
parent 5c715d1d53
commit 674bb2e8d3
5 changed files with 214 additions and 3 deletions

View File

@@ -11,12 +11,29 @@ data:
path.config: "/opt/bitnami/logstash/config/misc.conf"
omada.conf: |
input {
file {
path => "/tmp/omada"
tcp {
port => 1514
type => syslog
}
udp {
port => 1514
type => syslog
}
http {
port => 8008
}
}
output {
stdout { }
s3 {
access_key_id => ${omada_s3_access_key_id}
bucket => "logstash"
canned_acl => "bucket-owner-read"
endpoint => "http://minio.minio.svc.cluster.local:19000"
prefix => "omada/%{+YYYY}/%{+MM}/%{+dd}"
region: "ap-southeast-2"
secret_access_key => ${omada_s3_secret_access_key}
time_file => 60
}
}
misc.conf: |
input {