0
在Logstash中,我目前使用grok
將日誌行解析爲具有扁平結構的事件。如何構建添加到logstash事件的字段?
例如:
{
location_file_name: "ServiceDao.java"
location_line_number: 47
thread_name: "main-thread"
thread_number: "3"
}
我怎麼能代替解析成:
{
location : {
file: "ServiceDao"
line: 47
}
thread : {
name: "main-thread"
number: "3"
}
}
有沒有這樣的運氣? – Val