How to get the "Advanced Settings" from the Dev Tools?

Hello,

I'm using Kibana 6.5 and I would like to set the advanced settings in a script or similar without the need of the WebUI.

I saw this thread: Advanced settings via config file possible?
and it looked like what I wanted, but it didn't work for me I have made some changes to the advanced settings but when I run the GET that in that thread I get 0 hits back

{
  "took" : 0,
  "timed_out" : false,
  "_shards" : {
    "total" : 1,
    "successful" : 1,
    "skipped" : 0,
    "failed" : 0
  },
  "hits" : {
    "total" : 0,
    "max_score" : null,
    "hits" : [  ]
  }
}

Is there another way to do it in 6.5? should I use some other path?

I currently use this:

GET .kibana/config/_search

Ah yeah, it's a little outdated. Elasticsearch is deprecating types so we moved types into the document in 6+.

GET .kibana/_search
{
  "query": {
    "term": {
      "type": {
        "value": "config"
      }
    }
  }
}
1 Like

Thanks so much! @jbudz

I did find just the normal .kibana/_search but didn't know what to look for there since I had over 300 hits but it only showed the first 10.

But the query you gave me works great!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.