add 完成 ELK 整合

This commit is contained in:
疯狂的狮子li
2022-07-12 11:41:59 +08:00
parent 93e52ae6ac
commit fae0df1905
28 changed files with 175 additions and 88 deletions

View File

@@ -0,0 +1,14 @@
input {
tcp {
mode => "server"
host => "0.0.0.0"
port => 4560
codec => json_lines
}
}
output {
elasticsearch {
hosts => "127.0.0.1:9200"
index => "%{[spring.application.name]}-%{+YYYY.MM.dd}"
}
}