Complex Config Options via Command Line


#1

Is there any way to pass the more complex config items, such as regionmap, via the command line when starting Kibana?


(CJ Cenizal) #2

I think you just need to provide a JSON object wrapped in single quotes. For example, the example regionmap settings from the Kibana settings docs could be passed via the command line as an argument like this:

--regionmap='{"includeElasticMapsService":false,"layers":[{"name":"Departments of France","url":"http://my.cors.enabled.server.org/france_departements.geojson","attribution":"INRAP","fields":[{"name":"department","description":"Full department name"},{"name":"INSEE","description":"INSEE numeric identifier"}]}]}'

Hope this helps,
CJ


#3

Thanks CJ. So that does work, but it only seems to work if there are no spaces anywhere in the json. So even the text within quotes, such as "Departments of France" in the above, cannot have spaces or Kibana will throw a ValidationError when loading it with the message: child "regionmap" fails because ["regionmap" must be an object].

This isn't a deal-breaker, but do you know if there's anyway to allow spaces in?


(CJ Cenizal) #4

Sorry, ace1, I don't think there's a way to use spaces in that regionmap argument.

CJ


(system) #5

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