Unable to get data from scripted field

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?

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