As different log, need change measurement and data_points. In filter part, I add field add_field => { "measurement" => "parking-car-location" } to solve measurement, but data_points can not know how to solve, is there any idea? thanks
thanks, but that is not for my question.
my data_points format is right, can output metric. just different output content by logs. maybe this time is data_points => { "A" => "%{A}" "B" => "%{B}" "C" => "%{C}" } and next time is data_points => { "D" => "%{D}" "E" => "%{E}"}
In that case, you should use mutate and format dynamic array [@metadata][data_point] or use Ruby code. At the end will be: data_points => { %{[@metadata][data_point] }
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.