aws-samples / aws-waf-dashboard

1 click deployment for creating AWS WAF dashboard
MIT No Attribution
39 stars 41 forks source link

Dashboard errors on httpRequest.clientIp after install #2

Open pkennedyvt opened 4 years ago

pkennedyvt commented 4 years ago

The first index that is built has cleintIp as text. This throws the following error in the Dashboard:

Request to Elasticsearch failed: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Fielddata is disabled on text fields by default. Set fielddata=true on [httpRequest.clientIp] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"awswaf-2020-07-23","node":"YRRPzsdTRNKcReVxFSbKwA","reason":

Two things fix it.

Mudpuppy12 commented 3 years ago

This change worked for me

Galal-Eltfawy commented 2 years ago

@Mudpuppy12 how did you solve it , would you please share the modified file template.json

dkennedy256 commented 1 year ago

How do you fix this?