升级SpringBoot 2.3.0
This commit is contained in:
49
document/elk/logstash.conf
Normal file
49
document/elk/logstash.conf
Normal file
@@ -0,0 +1,49 @@
|
||||
input {
|
||||
tcp {
|
||||
mode => "server"
|
||||
host => "0.0.0.0"
|
||||
port => 4560
|
||||
codec => json_lines
|
||||
type => "debug"
|
||||
}
|
||||
tcp {
|
||||
mode => "server"
|
||||
host => "0.0.0.0"
|
||||
port => 4561
|
||||
codec => json_lines
|
||||
type => "error"
|
||||
}
|
||||
tcp {
|
||||
mode => "server"
|
||||
host => "0.0.0.0"
|
||||
port => 4562
|
||||
codec => json_lines
|
||||
type => "business"
|
||||
}
|
||||
tcp {
|
||||
mode => "server"
|
||||
host => "0.0.0.0"
|
||||
port => 4563
|
||||
codec => json_lines
|
||||
type => "record"
|
||||
}
|
||||
}
|
||||
filter{
|
||||
if [type] == "record" {
|
||||
mutate {
|
||||
remove_field => "port"
|
||||
remove_field => "host"
|
||||
remove_field => "@version"
|
||||
}
|
||||
json {
|
||||
source => "message"
|
||||
remove_field => ["message"]
|
||||
}
|
||||
}
|
||||
}
|
||||
output {
|
||||
elasticsearch {
|
||||
hosts => "localhost:9200"
|
||||
index => "mall-%{type}-%{+YYYY.MM.dd}"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user