While handling a huge log,
I am running ruby code filer and according to some rules, I am creating new fields to the event: Object1, Object2, etc.... .
The Number of Objects is according to the input in the event, but during scanning the event I also counting them.
In the end of the ruby filter, I have a parameter holding the number of Object fields and the Objects fields themselves.
For example:
I can have a field: objectsCounter with the value 4 and I will have Object1 .. Object4 fields too.
On each of the Object1 .. Object4 fields, I need to run xml filter.
How can I do it in loop? Or run the xml filter via Ruby?
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.