mirror of
https://github.com/Lanakod-Networks/rsyslog_docker.git
synced 2026-11-27 01:55:56 +00:00
first commit
This commit is contained in:
commit
375312784b
14 files changed
+153764
No files matched your search
@@ -0,0 +1,36 @@
|
||||
input {
|
||||
beats {
|
||||
port => 5044
|
||||
}
|
||||
|
||||
tcp {
|
||||
port => 5000
|
||||
}
|
||||
udp {
|
||||
port => 10514
|
||||
codec => "json_lines"
|
||||
type => "rsyslog"
|
||||
}
|
||||
}
|
||||
|
||||
# filter {
|
||||
# json {
|
||||
# source => "message"
|
||||
# skip_on_invalid_json => true
|
||||
# }
|
||||
# }
|
||||
|
||||
output {
|
||||
elasticsearch {
|
||||
index => "rsyslog-%{+YYYY.MM.dd}"
|
||||
hosts=> "${ELASTIC_HOSTS}"
|
||||
user=> "${ELASTIC_USER}"
|
||||
password=> "${ELASTIC_PASSWORD}"
|
||||
cacert=> "certs/ca/ca.crt"
|
||||
}
|
||||
# file {
|
||||
|
||||
# path => "/var/logstash/logs/%{facility}-%{+YYYY-MM-dd}.log"
|
||||
# codec => line { format => "custom format: %{message}"}
|
||||
# }
|
||||
}
|
||||
Reference in new issue
Block a user