The input to my logstash is is populating [Current][Alarms] from the input ...\"Alarms\":null... when there are no alarms, and when there are alarms then it is a list.
When there are no alarms, I still want to see "Alarms": [] in the output.
When I try to force the empty array from a Ruby block like this event.set('[Current][Alarms]', []) then it does not appear as a field in the output.
Is there a way to force the empty array or will those always get dropped?
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.