Is it possible to set the advanced settings (e.g. doc_table:highlight or state:storeinSessionStorage) via config file?
I'm doing a lot of testing right now, which also involves an occasional fresh installation and therefore it would be very neat to be able to set my favorite advanced settings when Kibana starts up. Otherwise I do stuff and then realize, that I forgot to change some settings.
Setting these via the config file is not possible. These settings actually get stored in Elasticsearch itself, in a special index (default is .kibana). So what you could do, while you are testing, is something like this:
Set all the advanced settings as you want via the Kibana UI
Grab the JSON document from Elasticsearch where these settings are stored. For this make an HTTP GET request to http://localhost:9200/.kibana/config/_search (assuming you have Elasticsearch running on localhost:9200; replace if necessary). This should return a document (under hits) corresponding to your version of Kibana, something that looks like this:
Grab the _source part of the document and save it somewhere.
Next time you install Kibana fresh, start up the Kibana server (so this special index in Elasticsearch is initialized properly). Then index your saved document back into Elasticsearch by sending an HTTP PUT request to http://localhost:9200/.kibana/config/<your kibana version, e.g. 5.1.1> with the body as the saved document. Note that if you are installing a different version of Kibana from the one you saved the settings from, this may not work.
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.