# Does search guard provide file encryption while indexing data in ES?

**URL:** <https://forum.search-guard.com/t/does-search-guard-provide-file-encryption-while-indexing-data-in-es/1387>\
**Category:** Search Guard\
**Created:** [March 22, 2019, 5:21am UTC](https://forum.search-guard.com/t/does-search-guard-provide-file-encryption-while-indexing-data-in-es/1387 "2019-03-22T05:21:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinit](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@vinit](https://forum.search-guard.com/u/vinit)\
**Post date:** [March 22, 2019, 5:21am UTC](https://forum.search-guard.com/t/does-search-guard-provide-file-encryption-while-indexing-data-in-es/1387/1 "2019-03-22T05:21:52Z")

</div>

When asking questions, please provide the following information:

- Search Guard and Elasticsearch version: 23.0-6.2.4

- Installed and used enterprise modules, if any: Community

- JVM version and operating system version: 8-Ubuntu

- Search Guard configuration files

- Elasticsearch log messages on debug level

- Other installed Elasticsearch or Kibana plugins, if any

---

<div class="post-metadata">

**Author:** ![jkressin](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/jkressin/32/9_2.png) [@jkressin](https://forum.search-guard.com/u/jkressin)\
**Post date:** [March 22, 2019, 10:40am UTC](https://forum.search-guard.com/t/does-search-guard-provide-file-encryption-while-indexing-data-in-es/1387/2 "2019-03-22T10:40:19Z")

</div>

No, it is not practical to implement index encryption on the Elasticsearch or Lucene layer. It would wreak havoc to the performance. Instead, we recommend using low-level file system encryption, like dm-crypt.

> **···**
>
> On Friday, March 22, 2019 at 6:21:52 AM UTC+1, [vinit@kratin.co.in](mailto:vinit@kratin.co.in) wrote:
> 
> > When asking questions, please provide the following information:
> 
> > - Search Guard and Elasticsearch version: 23.0-6.2.4
> 
> > - Installed and used enterprise modules, if any: Community
> 
> > - JVM version and operating system version: 8-Ubuntu
> 
> > - Search Guard configuration files
> 
> > - Elasticsearch log messages on debug level
> 
> > - Other installed Elasticsearch or Kibana plugins, if any
