Kibana.yml map.regionmap

I'm using Kibana version 8.1.0

In my kibana.yml, I append code as follow for use "configured GeoJSON menu"

map.regionmap:
  layers:
    - name: "SEOUL ZIPCODE"
      url: "http://localhost/TL_KODIS_BAS_11.geojson"
      attribution: "INRAP"
      fields:
          - name: "BAS_MGT_SN"
            description: "zipcode number"

I got a problem as follow

[FATAL][root] Error: [config validation of [map].regionmap]: definition for this key is missing
    at ObjectType.validate (/home/jdh/kibana-8.1.0/node_modules/@kbn/config-schema/target_node/types/type.js:95:13)
    at ConfigService.validateAtPath (/home/jdh/kibana-8.1.0/node_modules/@kbn/config/target_node/config_service.js:228:19)
    at MapSubscriber.project (/home/jdh/kibana-8.1.0/node_modules/@kbn/config/target_node/config_service.js:236:169)
    at MapSubscriber._next (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/operators/map.js:49:35)
    at MapSubscriber.Subscriber.next (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Subscriber.js:66:18)
    at DistinctUntilChangedSubscriber._next (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/operators/distinctUntilChanged.js:69:30)
    at DistinctUntilChangedSubscriber.Subscriber.next (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Subscriber.js:66:18)
    at MapSubscriber._next (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/operators/map.js:55:26)
    at MapSubscriber.Subscriber.next (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Subscriber.js:66:18)
    at ReplaySubject._subscribe (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/ReplaySubject.js:80:28)
    at ReplaySubject.Observable._trySubscribe (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Observable.js:44:25)
    at ReplaySubject.Subject._trySubscribe (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Subject.js:102:51)
    at ReplaySubject.Observable.subscribe (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Observable.js:30:22)
    at MapSubscriber.shareReplayOperation (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/operators/shareReplay.js:48:32)
    at Observable.subscribe (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Observable.js:25:31)
    at MapOperator.call (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/operators/map.js:32:23)
    at Observable.subscribe (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Observable.js:25:31)
    at DistinctUntilChangedOperator.call (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/operators/distinctUntilChanged.js:27:23)
    at Observable.subscribe (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Observable.js:25:31)
    at MapOperator.call (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/operators/map.js:32:23)
    at Observable.subscribe (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Observable.js:25:31)
    at TakeOperator.call (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/operators/take.js:38:23)
    at Observable.subscribe (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Observable.js:25:31)
    at ThrowIfEmptyOperator.call (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/operators/throwIfEmpty.js:30:23)
    at Observable.subscribe (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Observable.js:25:31)
    at /home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Observable.js:99:19
    at new Promise (<anonymous>)
    at Observable.toPromise (/home/jdh/kibana-8.1.0/node_modules/rxjs/internal/Observable.js:97:16)
    at ConfigService.isEnabledAtPath (/home/jdh/kibana-8.1.0/node_modules/@kbn/config/target_node/config_service.js:169:95)
    at PluginsService.handleDiscoveredPlugins (/home/jdh/kibana-8.1.0/src/core/server/plugins/plugins_service.js:203:25)
    at PluginsService.discover (/home/jdh/kibana-8.1.0/src/core/server/plugins/plugins_service.js:66:5)
    at Server.preboot (/home/jdh/kibana-8.1.0/src/core/server/server.js:159:30)
    at Root.preboot (/home/jdh/kibana-8.1.0/src/core/server/root/index.js:48:14)
    at bootstrap (/home/jdh/kibana-8.1.0/src/core/server/bootstrap.js:99:9)
    at Command.<anonymous> (/home/jdh/kibana-8.1.0/src/cli/serve/serve.js:216:5)

 FATAL  Error: [config validation of [map].regionmap]: definition for this key is missing

how to fix it?

The region map visualization was removed from Kibana 8.0, hence all the related configuration settings are not valid anymore in kibana.yml.

Find more details in this github issue.

@ rhsnfl1122

You can create region maps with custom geojson in the maps application.

Use geojson upload to index your TL_KODIS_BAS_11.geojson file into Elasticsearch. Then, create a new map and add a choropleth layer. Select "Points, lines, and polygons from Elasticsearch" as "Boundaries source". Set "Data view" to "TL_KODIS_BAS_11".

More detailed instructions can be found at Map custom regions with reverse geocoding | Kibana Guide [8.1] | Elastic.

Hope that helps

2 Likes

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