# Disk Usage Tuning

**URL:** https://discuss.elastic.co/t/disk-usage-tuning/118122
**Category:** Elasticsearch
**Created:** [February 1, 2018, 11:31pm UTC](https://discuss.elastic.co/t/disk-usage-tuning/118122 "2018-02-01T23:31:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fpr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fpr/32/20088_2.png) [@fpr](https://discuss.elastic.co/u/fpr)
#### Post date: [February 1, 2018, 11:31pm UTC](https://discuss.elastic.co/t/disk-usage-tuning/118122/1 "2018-02-01T23:31:10Z")

</div>

Hi,  
I want to save disk space for storing syslog data. As I am not interested in full text search I defined the mappings for string fields like this:

"SourceLocation" : {  
"type" : "keyword",  
},

For testing I indexed the same data with the standard mappings which maps strings as both text and keywords:

"SourceLocation" : {  
"type" : "text",  
"norms": false,  
"index\_options": "docs",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
}  
}  
},

I noticed no difference in needed disk space.  
Should not the first variant with only keyword mapping need much less space?

I am using ES 5.6

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [February 3, 2018, 11:23am UTC](https://discuss.elastic.co/t/disk-usage-tuning/118122/2 "2018-02-03T11:23:30Z")

</div>

How much data did you index (I would recommend at least a few hundred MB)? How many shards did you use (I would recommend using a single primary shard)? Did you run forcemerge down to 1 segment in order to make a fair comparison?

---

<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: [March 3, 2018, 11:23am UTC](https://discuss.elastic.co/t/disk-usage-tuning/118122/3 "2018-03-03T11:23:51Z")

</div>

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