# Data Masking ES 7.x

**URL:** https://discuss.elastic.co/t/data-masking-es-7-x/203259
**Category:** Elasticsearch
**Created:** [October 11, 2019, 3:31pm UTC](https://discuss.elastic.co/t/data-masking-es-7-x/203259 "2019-10-11T15:31:17Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)
#### Post date: [October 11, 2019, 3:31pm UTC](https://discuss.elastic.co/t/data-masking-es-7-x/203259/1 "2019-10-11T15:31:18Z")

</div>

Hi all,  
can I know what is the current situation regarding any kind of plugin/method for data masking?  
I mean, if I would like to do it, what should be the best or suggest approach?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [October 13, 2019, 9:58am UTC](https://discuss.elastic.co/t/data-masking-es-7-x/203259/2 "2019-10-13T09:58:22Z")

</div>

If you are meaning hiding some fields or documents depending on user rights, it's possible with the security plugin with a platinum license (commercial) or the 30 days trial which you can activate from Kibana.

---

<div class="post-metadata">

### Author: ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)
#### Post date: [October 14, 2019, 8:19am UTC](https://discuss.elastic.co/t/data-masking-es-7-x/203259/3 "2019-10-14T08:19:28Z")

</div>

hi @dadoonet,  
no I would like to change field's value with, for instance, a hash.  
I have already used the platinum feature "hide document/field" but in this situation I have to "change" the values inside fields.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [October 21, 2019, 10:22am UTC](https://discuss.elastic.co/t/data-masking-es-7-x/203259/4 "2019-10-21T10:22:00Z")

</div>

You should compute a hash then.  
The Logstash fingerprint plugin does that.

It's not available in elasticsearch yet as an ingest processor though. See

> <https://github.com/elastic/elasticsearch/issues/34085>

---

<div class="post-metadata">

### Author: ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)
#### Post date: [October 21, 2019, 12:03pm UTC](https://discuss.elastic.co/t/data-masking-es-7-x/203259/5 "2019-10-21T12:03:36Z")

</div>

sorry @dadoonet, I'm not understanding the LS plugin usage ☹  
probably my initial request was not so clear. my intention is to mask a specific field (for instance, the employees's revenue) with an hash code.

I'm not sure I can use the LS fingerprint plugin.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [October 21, 2019, 2:06pm UTC](https://discuss.elastic.co/t/data-masking-es-7-x/203259/6 "2019-10-21T14:06:56Z")

</div>

If you are ingesting your data using logstash then you can use the fingerprint plugin.

Otherwise you can create your own hash on the application side.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 18, 2019, 2:07pm UTC](https://discuss.elastic.co/t/data-masking-es-7-x/203259/7 "2019-11-18T14:07:02Z")

</div>

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