In my previous article, “Kibana: Generating Different Spaces for Different Users,” I showed you how to create Spaces and customize different index permissions for different users. In today’s article, we’ll show you how to customize different Kibana user interfaces for different users. This in the actual use, there are many application scenarios. We can have different people log in to Kibana and present different interfaces, so that they can use the user interface they need, not the extra interface. Such as:

In today’s presentation, I’ll be using the Elastic Stack Release 7.9.

 

Create different Spaces

We can start by referring to the previous article “Kibana: Generating Different Spaces for Different Users” to create two different Kibana user interfaces: Visualization_only and DISCOVER_only.

Let’s click on the Show link to customize the Space interface:

Let’s pick the top four. It is also in this Space that we can only do visualizations, dashboards, manage indexes and save objects (import and export objects). Click the Create Space button above:

From the above, you can see that you have successfully created a Space called Visualization Only. Let’s click on the “D” in the upper left to switch the Space:

From the above, we can see that when we click Home, only Dashboard and the Visualize menu option are visible. The rest of the menu is small. This means that all other functions are invisible to us. In the upper left of the window, we also see the word VO, which means VISUALIZATION Only. The color displayed is also the color we customized before.

In the same way, let’s create a Space called Discover Only. In this space, we only have discover app. Let’s switch to the Default space first.

Follow the same steps above to create a discover only Space:

Click Create Space above to Create a space called Discover Only. You can choose a different color than Visualization Only.

When we switch to discovery only Space, we can see:

From above, we can see that only the Discover menu is available.

 

Create a user to log into Space

We have created different Spaces above. We can even have different users bind these created Spaces so that they have different interfaces when logged in. In order to be able to create different users, we need to enable Elasticsearch security. Please read my previous article “Elasticsearch: User Security Settings”. I don’t want to talk about it here.

Create a role

When we had set up our security, we logged in to Kibana again. It prompts us to enter the correct username and password. We log in using the super username elastic. We choose Default Space. We use this Space to create roles:

Above, we define a role called web_analyst. It operates on kibanA_SAMple_datA_logs. This index is also one of three that come with Kibana. Let’s scroll down:

We hit the Add Space Privileage button:

We add visualization_only and discover_only Spaces that we just created:

Click on Create Space Privilege above:

Click Create Role:

This creates the web_analyst role.

 

Create a user

Let’s create a user called web_user:

Click Create User above to Create a web_user user.

I next use the newly created web_user account to log in:

Select one of the Spaces:

We can see that only two menus are visible.