elastic / examples

Home for Elasticsearch examples available to everyone. It's a great way to get started.
Apache License 2.0
2.64k stars 1.24k forks source link

illegal_argument_exception #229

Open sasivarenan opened 6 years ago

sasivarenan commented 6 years ago

Team,

We trying to do a POC using DNS tunnel detection. I am using Elasticsearch 6.3.

When i try to run watcher json its shows "illegal_argument_exception"

curl -H "Content-Type: application/json" -XPUT http://10.2.1.200:9200/_watcher/watch/_execute?pretty -d@unique_hostnames_watch.json

Error


{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "[script] unknown field [file], parser not found"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "[script] unknown field [file], parser not found"
  },
  "status" : 400
}
sasivarenan commented 6 years ago

if i use elasticsearch 5.0 i get the below error

"reason" : "SearchPhaseExecutionException[all shards failed]; nested: RemoteTransportException[[ffVme_D][127.0.0.1:9300][indices:data/read/search[phase/query]]]; nested: IllegalArgumentException[Fielddata is disabled on text fields by default. Set fielddata=true on [dns.question.etld_plus_one] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory.]; ",