logstash filter json数组
时间: 2023-09-11 14:05:08 浏览: 175
logstash-codec-json
在Logstash的filter中,可以使用json filter插件来处理包含json数组的数据。可以通过以下配置来实现:
filter {
json {
source => "message"
target => "parsed_json"
}
}
上述配置将会把message字段中的json数组解析为一个新的字段parsed_json。你可以根据需要对parsed_json字段进行进一步处理和转换。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Logstash json filter插件](https://blog.csdn.net/chaojunma/article/details/122586401)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文