mirror of
https://github.com/tiennm99/jvm-labs.git
synced 2026-09-03 12:21:47 +00:00
feat: minify config
This commit is contained in:
@@ -6,17 +6,14 @@ input {
|
||||
}
|
||||
|
||||
filter {
|
||||
if [type] == "metric" {
|
||||
mutate {
|
||||
add_field => { "metric_type" => "micrometer" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
output {
|
||||
stdout {
|
||||
codec => rubydebug
|
||||
}
|
||||
elasticsearch {
|
||||
hosts => ["elasticsearch:9200"]
|
||||
index => "logs-%{+YYYY.MM.dd}"
|
||||
}
|
||||
stdout { codec => rubydebug }
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<configuration>
|
||||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %5p --- [%t] %c : %m%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<destination>localhost:5000</destination>
|
||||
<encoder class="net.logstash.logback.encoder.LogstashEncoder">
|
||||
<includeMdc>true</includeMdc>
|
||||
<customFields>{"app_name":"metrics-demo"}</customFields>
|
||||
<customFields>{"demo_custom_fields":"micrometer-demo"}</customFields>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user