I am trying to whitelist a number of nested fields.
I first tried it using the prune filter but it seems that one does not support nested fields only top level fields.
I saw in this topic Logstash prune nested fields that there was an example for blacklisting nested fields using the ruby filter.
Can somebody help me with the same thing but for whitelisting ?
I tried to do it myself but ruby is very new for me so I am really struggling.
If you need to iterate over the contents of objects in the event then you would use a ruby filter like this. However, it is hard for me to even think of a syntax that would allow one to specify which nested fields should be whitelisted when an object can contain arrays within hashes and hashes within arrays.
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.