# \[Performance\]Document security vs multiple indeces?

**URL:** <https://discuss.elastic.co/t/performance-document-security-vs-multiple-indeces/152011>\
**Category:** Elasticsearch\
**Created:** [October 11, 2018, 8:37am UTC](https://discuss.elastic.co/t/performance-document-security-vs-multiple-indeces/152011 "2018-10-11T08:37:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sjaak01](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@Sjaak01](https://discuss.elastic.co/u/Sjaak01)\
**Post date:** [October 11, 2018, 8:37am UTC](https://discuss.elastic.co/t/performance-document-security-vs-multiple-indeces/152011/1 "2018-10-11T08:37:30Z")

</div>

Hi,

I have some data, all the same kind, but from different sources, that I need to secure. My initial plan was to create a separate index for each source and use roles to limit access to a index. But I realized the same could be achieved using document security.

I am using Kibana to visualize the data.

Does anyone know what would be the best option performance wise? If I were to put all data into a single index it might get as big as 20GB a day. Data needs to be searchable for up to 90 days so I guess that will be a pretty big search.

If I go with seperate, smaller indeces, there might be some extra overhead but the searches should be quicker as the size of the indeces would be much smaller (couple of GB)?

Unfortunately I don't have a big enough data set yet to test with.

---

<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 11, 2018, 8:51am UTC](https://discuss.elastic.co/t/performance-document-security-vs-multiple-indeces/152011/2 "2018-10-11T08:51:34Z")

</div>

May I suggest you look at the following resources about sizing:

[https://www.elastic.co/elasticon/conf/2016/sf/quantitative-cluster-sizing](https://www.elastic.co/elasticon/conf/2016/sf/quantitative-cluster-sizing)

> **[How many shards should I have in my Elasticsearch cluster?
	  	 | Elastic](https://www.elastic.co/blog/how-many-shards-should-i-have-in-my-elasticsearch-cluster)**
>
> Elasticsearch is a very versatile platform, that supports a variety of use cases, and provides great flexibility around data organisation and replication strategies. This flexibility can however somet...

> **[NetSecureDay: Managing your Black Friday Logs](https://speakerdeck.com/elastic/netsecureday-managing-your-black-friday-logs)**
>
> Surveiller une application complexe n’est pas une tâche aisée, mais avec les bons outils, ce n’est pas si sorcier. Néanmoins, des périodes fortes telles que les opérations de type « Black Friday » (Vendredi noir) ou période de Noël peuvent pousser...

And [https://www.elastic.co/webinars/using-rally-to-get-your-elasticsearch-cluster-size-right](https://www.elastic.co/webinars/using-rally-to-get-your-elasticsearch-cluster-size-right)

---

<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 8, 2018, 8:51am UTC](https://discuss.elastic.co/t/performance-document-security-vs-multiple-indeces/152011/3 "2018-11-08T08:51:34Z")

</div>

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