# Filebeat, Mapper Plugin & Adding \_size to all new logs

**URL:** https://discuss.elastic.co/t/filebeat-mapper-plugin-adding-size-to-all-new-logs/197102
**Category:** Beats
**Tags:** filebeat
**Created:** [August 28, 2019, 11:43am UTC](https://discuss.elastic.co/t/filebeat-mapper-plugin-adding-size-to-all-new-logs/197102 "2019-08-28T11:43:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ivan\_Artemov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ivan_artemov/32/53165_2.png) [@Ivan\_Artemov](https://discuss.elastic.co/u/Ivan_Artemov)
#### Post date: [August 28, 2019, 11:43am UTC](https://discuss.elastic.co/t/filebeat-mapper-plugin-adding-size-to-all-new-logs/197102/1 "2019-08-28T11:43:14Z")

</div>

Elasticsearch 6.8.2  
Filebeat 6.8.2

I try to add \_size field to all our documents to analyze statistics  
I deploy elk-stack in docker with mapper pluging and want to write to-do list for steps, required for migrate our Prod cluster.

I enable \_size field directly to index

PUT /\_template/filebeat-6.8.2-2019.08.28  
{  
"index\_patterns": [  
"filebeat-6.8.2-\*"  
],  
"mappings": {  
"doc": {  
"\_size": {  
"enabled": true  
}  
}  
}  
}

but no results.  
I reexport logs with filebeat, but not found \_size filed in new logs.

Can you help me?  
We need enable \_size for all new logs

---

<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: [September 25, 2019, 11:43am UTC](https://discuss.elastic.co/t/filebeat-mapper-plugin-adding-size-to-all-new-logs/197102/2 "2019-09-25T11:43:24Z")

</div>

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