My events sometimes have a field "foo" equal to a single value, sometimes an array of multiple distinct values, and sometimes an array of exactly two equal values.
I would like to convert the last case to the first case.
For example, I would like to convert this
"foo": [
"bar",
"bar"
],
to
"foo": "bar"
Is there an easy method to do this? I was thinking i could do something along those lines:
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.