ps中复制图层的快捷键 | ps中怎么
265 2023-04-02 17:14:24
{"person":{"age":"11"}} this is the sample
该字符串期望分割成两个字段,并对第一个字段进行json解析。最终达到下面的形式:
field1:{ field_person:{ field_age:11 }}field2:this is the sample
input{ stdin{ # codec=>rubydebug }}filter{# codec=>rubydebug mutate{ split=>["message"," "] add_field => { "field1" => "%{[message][0]}" } add_field => { "field2" => "%{[message][1]}" } remove_field => ["message"] } json{ source => "field1" target => "field1" }}output{ stdout{ codec=>rubydebug }}
整体配置文件比较容易,如果json的处理中不配置target参数的话,json形成的字段会和field1并列,而不会成为field的字段值。这个需要特别注意一下!
http://www.cnblogs.com/qq27271609/p/4762562.html
http://www.voidcn.com/article/p-sywttpss-xm.html