# Creating custom fields in indexed records of elastic search

**URL:** <https://discuss.elastic.co/t/creating-custom-fields-in-indexed-records-of-elastic-search/27315>\
**Category:** Elasticsearch\
**Created:** [August 13, 2015, 9:48am UTC](https://discuss.elastic.co/t/creating-custom-fields-in-indexed-records-of-elastic-search/27315 "2015-08-13T09:48:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sar82](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@Sar82](https://discuss.elastic.co/u/Sar82)\
**Post date:** [August 13, 2015, 9:48am UTC](https://discuss.elastic.co/t/creating-custom-fields-in-indexed-records-of-elastic-search/27315/1 "2015-08-13T09:48:53Z")

</div>

Hi, I have the following setup on red hat linux,

**Fluentd (data collector) --\> Elasticsearch (Indexing data) --\> Kibana (Visualization)**

Fluentd is collecting data from some resource which I want to reform. Say for example I am getting students information from fluentd like student information and marks in subjects. I want to create new fields like total marks, percentage and grade along with existing fields.

I will be using these fields in kibana to create graphs.

**Where and how to create these custom fields?**  
**Where should calculation of these fields should happen?**

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 13, 2015, 8:32pm UTC](https://discuss.elastic.co/t/creating-custom-fields-in-indexed-records-of-elastic-search/27315/2 "2015-08-13T20:32:49Z")

</div>

You can do aggregations on the data to get things like total marks, but they aren't added as fields, it's all dynamic in KB.

---

<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:** [July 5, 2017, 11:55pm UTC](https://discuss.elastic.co/t/creating-custom-fields-in-indexed-records-of-elastic-search/27315/3 "2017-07-05T23:55:54Z")

</div>


