I need to mask some confidential data in Kibana. Consider that userId needs to be masked in Kibana visualizations.
I want the userIds to be displayed as user1, user2, user3 etc in the visualizations.
There need not be any mapping between the real userId and masked userId.
Is this possible in Kibana?
I currently see multiple possible solutions for that.
a) you could just disable the labels on the x-axis for this chart. That way it will just show the bars without any label.
b) you could create a custom "anonymizing" field formatter, that will take a string as an input and outputs instead just a short replacement name. You can have a log at this blogpost for more information.
c) Use a scripted field on the index, that uses the value from the users field, and instead will output some random hash for it.
when I went through the blog, I could see you saying, "In the future, we (the Kibana team) will be working on providing this functionality as a plugin, which will help simplify the registration proces" . Is this plugin there in the current version of Kibana?
you can already use this in a plugin. What you basically need to do is just register a
uiExport in your plugin (https://www.elastic.co/guide/en/kibana/master/development-uiexports.html).
That file would then be the file you do all the registration in. Also have a look at the Kibana plugin itself, how to use this setting: https://github.com/elastic/kibana/blob/master/src/core_plugins/kibana/index.js#L39
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.