{"request":{"id":"123","querystring":{},"url":"https"}}}
filter {
#catalina.out 처리
if [fields][log_type] == "file_log" {
json {
source => "message"
}
}
}
"request": {
"id":"123",
"url": "https"
}
이렇게 json 데이터가 알아서 색인에 필드로 저장된다.
단계 맞춰서 저장할 필드명 사용.
mutate {
copy => { "[response][headers][date]" => "log_time" }
}