What you probably want is the length of the variable names, you should try to use names.length, using event.get("[names]").length will try to get the length of the names field from your document.
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.