# Kibana scripted field: doc\['some\_field'\] doesnt work when the field has a lot of data

**URL:** <https://discuss.elastic.co/t/kibana-scripted-field-doc-some-field-doesnt-work-when-the-field-has-a-lot-of-data/285106>\
**Category:** Elasticsearch\
**Tags:** painless\
**Created:** [September 24, 2021, 6:15pm UTC](https://discuss.elastic.co/t/kibana-scripted-field-doc-some-field-doesnt-work-when-the-field-has-a-lot-of-data/285106 "2021-09-24T18:15:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Felipsz](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@Felipsz](https://discuss.elastic.co/u/Felipsz)\
**Post date:** [September 24, 2021, 6:22pm UTC](https://discuss.elastic.co/t/kibana-scripted-field-doc-some-field-doesnt-work-when-the-field-has-a-lot-of-data/285106/2 "2021-09-24T18:22:28Z")

</div>

Just forgot to add, I've seen some people with the same issue as me, in the following topics:  
[https://discuss.elastic.co/t/scripted-field-read-field-data-from-a-document-using-doc-some-field-value-return-null-in-some-cases/187385/8](https://discuss.elastic.co/t/scripted-field-read-field-data-from-a-document-using-doc-some-field-value-return-null-in-some-cases/187385/8)

> [@Scripted field: Read field data from a document using doc\['some\_filed'\].value statement is not working for bigger field data](https://discuss.elastic.co/t/scripted-field-read-field-data-from-a-document-using-doc-some-filed-value-statement-is-not-working-for-bigger-field-data/113775):
>
> Hi Everyone, I am new to kibana. Need your help to solve the following problem which am facing from a day. I am working on kibana scripted field approach to transform a field value by accessing it using "doc[some\_field].value" statement and perform some computation using groovy script then finally return a new field. Problem: "doc[some\_field].value" is returning null in-case if the field value is large. Kibana version is : 6.0.1 field name: message.keyword =\> doc[message.keyword].value langu…

---

_[View the full topic](https://discuss.elastic.co/t/kibana-scripted-field-doc-some-field-doesnt-work-when-the-field-has-a-lot-of-data/285106)._
