json编解码

来源:互联网 发布:最新2017流行网络语言 编辑:程序博客网 时间:2024/05/18 23:55
[elk@zjtest7-frontend test]$ cat json.conf input {    stdin {    }}filter {  json{  source =>"message"  target =>"jsonconnect"   }}output { stdout {  codec=>rubydebug{}   } }[elk@zjtest7-frontend test]$ ../../bin/logstash -f json.conf Settings: Default pipeline workers: 1Pipeline main started{"uid":1111,"type":2222}{        "message" => "{\"uid\":1111,\"type\":2222}",       "@version" => "1",     "@timestamp" => "2016-09-13T03:08:43.567Z",           "host" => "0.0.0.0",    "jsonconnect" => {         "uid" => 1111,        "type" => 2222    }}

0 0
原创粉丝点击