我有一个json流,我想通过logstash传递给elasticsearch。我理解我需要一个输入,然后是json过滤器,然后输出到elasticsearch。但我不知道用于logstash的适当输入是什么。我的json流是 localhost:8083 的URL,如下所示:
{ “节点”:1, “road_density”:27, “速度”:17.750372299924493 “car_count”:3 “温度”:55, “CPU”:40, “记忆”:49, “时间戳”: “2015年6月21日下午1:12:32”} { “节点”:1, “road_density”:38, “速度”:132.35753105953336, “car_count”:1, “温度”:67, “CPU”:91, “记忆”:98, “时间戳”:“6 / 21/2015 1:12:32 PM“} { “节点”:1, “road_density”:0, “速度”:123.76824188511819, “car_count”:0, “温度”:51, “CPU”:17, “记忆”:15, “时间戳”:“6 / 21/2015 1:12:32 PM“} { “节点”:1, “road_density”:85, “速度”:72.68045444507152, “car_count”:1, “温度”:60, “CPU”:34, “记忆”:68, “时间戳”:“6 / 21/2015 1:12:33 PM“} { “节点”:1, “road_density”:89, “速度”:69.51827178243548, “car_count”:2 “温度”:40, “CPU”:67, “记忆”:12, “时间戳”:“6 / 21/2015 1:12:33 PM“} { “节点”:1, “road_density”:48, “速度”:45.43173309415579, “car_count”:3 “温度”:45, “CPU”:5, “记忆”:48, “时间戳”:“6 /二千〇一十五分之二十一 1:12:34 PM“} { “节点”:1, “road_density”:13, “速度”:104.68090719077736, “car_count”:3 “温度”:57, “CPU”:32, “记忆”:22, “时间戳”:“6 / 21/2015 1:12:35 PM“}