For given below test data of ElasticSearch index, how do we eliminate the field name(s) containing UUID?
Can we make use of regular expressions here? Per my understanding, regexp will match the values but not keys.
I am able to achieve this requirement with below query, but there are many fields matching UUID as part of field name. Anyone have better thoughts on how to take this forward?
Hi David, it is not excluding the document altogether.. but only excluding the matching fields from output. The better way to put the question is as follows.
Can we exclude the fields "cluster-05ed7d0d-ec9e-4e48-a5a3-cdef11e7be28", "cluster-05ed7d0d-ec9e-4e48-a5a3-cdef11e7be28_1" and "cluster-05ed7d0d-ec9e-4e48-a5a3-cdef11e7be28_2" while querying using regex in "_field_names"?
Instead, using this regex "cluster-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" is not giving the results though.
Any idea why this regex is not accepted as part of source filtering excludes pattern
Or, are there any ways to make this regex work as part of excludes pattern?
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.