This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
kafka { | |
bootstrap_servers => "kafka-mangkyu.mangkyu.com:9092" | |
topics => ["works_mangkyu"] | |
group_id => "works-mangkyu-log" | |
client_id => "mangkyu-logstash" | |
decorate_events => true | |
consumer_threads => 10 | |
codec => json | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Tomcat Log Pattern (Log4j2) | |
# [%equals{%X{works_rid}}{}{startup}] %d{yyyy-MM-dd HH:mm:ss} [%-5p](%-35c{1}:%-3L) %m%n | |
# Tomcat Log Example | |
#[42744e73aebe5366cf627e8cf71c3da6] 2022-12-29 17:31:43 [DEBUG](GetProductService :118) 존재하지 않는 Product 입니다. | |
# Nginx Log Pattern | |
# log_format main '$request_id $remote_addr - $remote_user [$time_local] "$request" ' | |
# '$status $body_bytes_sent "$http_referer" "$request_time" ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"regexp" | |
"strings" | |
) | |
var pattern = `^\[[0-9a-fA-F]{32}\][[:space:]][0-9]{4}-[0-9]{2}-[0-9]{2}[[:space:]][0-9]{2}:[0-9]{2}:[0-9]{2}[[:space:]]\[` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration(proxyBeanMethods = false) | |
public class MyBeanConfiguration { | |
@Bean | |
public CommonBean commonBean() { | |
return new CommonBean(); | |
} | |
@Bean | |
public MyFirstBean myFirstBean() { | |
return new MyFirstBean(commonBean()); |