We have 2 indices (logs & intel) and are trying to search 2 fields in the
logs index (src & dst) for any match from the intel ip field. The challenge
is the terms filter is expecting 1 document with all the values to be
searched for within that document. The intel index has over 150k documents.
Is there a way to extract the ip field from the intel index (aggregations
maybe) and use that to search the src & dst fields in the logs index?
You are trying to perform a join. The closest things to a join that
elasticsearch has are nested documents (index-time joins) and parent/child
relationships (search-time joins). However, I don't think any of these
solutions would work out of the box for you since your are trying to join
on two fields at the same time.
We have 2 indices (logs & intel) and are trying to search 2 fields in the
logs index (src & dst) for any match from the intel ip field. The challenge
is the terms filter is expecting 1 document with all the values to be
searched for within that document. The intel index has over 150k documents.
Is there a way to extract the ip field from the intel index (aggregations
maybe) and use that to search the src & dst fields in the logs index?
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.