maxClauseCount is set to 1024 error when running "Threat Intel Filebeat Module (v8.x) Indicator Match" rule

Ended up solving this after finding a Github issue in the Elasticsearch repo:

In the issue the author found that having a jvm heap size less that 1GB forced the maximum number of clauses to be set to the default of 1024, which is why even though my node settings said it was 4096, the system forced it to 1024 internally. This was in fact the case for my setup, even though I have assigned more than 1Gb of memory for the ES node the jvm is only assigned half of that.

I believe you can see your max jvm heap size by running: GET _nodes/settings in the dev console of kibana and looking at nodes.*.attributes.ml.max_jvm_size, it seems to be set to half of nodes.*.attributes.ml.machine_memory.

After assigning over 2Gb of memory and waiting for the ES nodes to update the rule ran with no problem.