Configuring Elastic Kibana & jExperience for analytics

December 14, 2022

The following document only applies if you are not using Jahia cloud. On Jahia cloud, jExperience analytics is installed and configured for all jExperience customers.

Before reading the following document, we recommend that you go through About jExperience analytics, where you'll be able to find the high level architecture and an introduction to the components involved.


  • Jahia
  • jExperience 2.2.0+
  • jCustomer -1.5.7
  • Kibana 7.17.4+
  • Elasticsearch 7.17.4+

Configuring Kibana to support connection from Jahia

Kibana requires a specific configuration in order for dashboards to be accessible directly from Jahia UI. 
In Kibana configuration file (config/kibana, you need to set the server.basePath parameter to "/modules/kibana-proxy" and restart the Kibana server.

Configuring the connection between kibana dashboard provider and Kibana

The connection between Jahia and Kibana is configured with an osgi configuration file: 


This file is created during the deployment of the kibana dashboard provider module. It can be edited directly in the filesystem (in ‚Äč‚Äčkaraf/etc), Jahia’s provisioning API, Jahia’s GraphQL API or using the OSGI Web configuration in Jahia tools.

Kibana URL - The base URL of the Kibana server.

advanced_dashboard.kibanaURL= http://localhost:5601

Credentials / Kibana user, password & role - The credentials will be used for several purposes: load dashboards that exist in kibana to display them in the jahia UI, import jexperience dashboards to kibana and automatically login jahia users inside Kibana to avoid the need to authenticate twice. 

We strongly recommend not to use the default “elastic” super-user credentials here. Instead, create a new user account containing only the editor role. This can be done from Kibana by navigating to:  “Stack Management” >> Security >> Users: 


The “editor” user role is required here in order to automatically import the built-in dashboards provided by the "jexperience-dashboards" module (or if you use your own custom module that imports other Kibana dashboards). 


Note: If you didn't configure security of your kibana server, you can set any value in the user / password.

The properties used to define the user / password are the following:

advanced_dashboard.kibanaUser = elastic
advanced_dashboard.kibanaPassword = password

Kibana space (Optional) - This property is used to define which kibana space will be used. If this property is not specified, the Kibana space “default” will be used. 

kibana_dashboards_provider.kibanaSpace = myKibanaSpace

The built-in dashboards brought by the “jexperience-dashboards” module are imported during module start in the "kibana space" defined the configuration. As a consequence, if you want to change this space, you will have to restart the “jexperience-dashboards” module so that the dashboards are automatically imported into your new space. 

Proxy configuration - To avoid asking Jahia users to manually login to Kibana, you need to enable the proxy. The proxy will provide access to Kibana and will use the kibanaUser and kibanaPassword to authenticate. To ensure that the proxy is activated, set both following properties to true: 

advanced_dashboard.KibanaProxy.enable = true = true