Configurar GeoNetwork

Nota

GeoNetwork package should be build using the maven es profile in order to be able to configure the search/content statistics to use ElasticSearch/Kibana:

$ cd GN_SOURCES/
$ mvn clean install -Penv-prod,es

If you’re using a development environment, can use the following command from the Geonetwork sources folder:

$ cd GN_SOURCES/web
$ mvn jetty:run -Penv-dev,es

To setup the search/content statistics in GeoNetwork do the following steps:

  • Comment the following filter in TOMCAT_DIR/webapps/geonetwork/WEB-INF/web.xml
<!--<filter-mapping>
  <filter-name>XFrameOptionsFilter</filter-name>
  <url-pattern>/*</url-pattern>
</filter-mapping>-->

, otherwise when accessing the dashboard the following error is displayed in the js console:

Refused to display 'http://localhost:8080/geonetwork/dashboards/app/kibana#/dashboard/5b407790-4fa1-11e7-a577-3197d1592a1d?embed=true&_g=()' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
../../_images/search-statistics.png

The first time you’re prompted to select the Kibana default index. Select .dashboards:

../../_images/kibana-index-1.png

and set as default to get it working.

../../_images/kibana-index-2.png
  • Reload the page and check the dashboards.
../../_images/search-statistics-dashboards.png

Content statistics/validation

Content and validation status statistics are available also from to Statistics and status in http://localhost:8080/geonetwork/srv/eng/admin.console#/dashboard, but require to index manually the content in ElasticSearch. This will be improved in future versions.

../../_images/content-indexing.png