Not quite what I meant, I think. I'm not wanting to append "loopback" to the string in myhostname. I want myhostname to be an array, and I am appending "loopback" to its list of values.
In other words, prior to this "myhostname" might contain two elements, "apple" and "banana". After this filter, I want myhostname to contain three elements, "apple", "banana", and "loopback"
Or does gsub also intepret "$" to mean "the end of the array" if the field is an array field?
Hm, I'm reading now that apparently calling add_field twice on the same field will turn it into an array, which would be simpler than using merge. I'll try that.
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.