# Unable to get data from scripted field

**URL:** <https://discuss.elastic.co/t/unable-to-get-data-from-scripted-field/325021>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [February 8, 2023, 12:46pm UTC](https://discuss.elastic.co/t/unable-to-get-data-from-scripted-field/325021 "2023-02-08T12:46:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amit\_tiwari](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amit_tiwari/32/116952_2.png) [@amit\_tiwari](https://discuss.elastic.co/u/amit_tiwari)\
**Post date:** [February 8, 2023, 12:46pm UTC](https://discuss.elastic.co/t/unable-to-get-data-from-scripted-field/325021/1 "2023-02-08T12:46:32Z")

</div>

My Index: cls-docker-logs\*

Existing mapping in index cls-docker-logs-2023-01-18  
GET cls-docker-logs-2023-01-18/\_mapping  
"stack\_trace" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
},  
Updated the mapping to:  
"stack\_trace" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 2560000  
}  
}  
},  
Created a scripted field from where i basically want the value and want to perform some string manipulation  
return doc['stack\_trace.keyword'].value;

I don't see any value after i run this  
What I am doing wrong here?  
How to update the cls-docker-logs\* index pattern overall?

---

<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 8, 2023, 12:47pm UTC](https://discuss.elastic.co/t/unable-to-get-data-from-scripted-field/325021/2 "2023-03-08T12:47:27Z")

</div>

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