Hi, i got a field with values like this
InstanceName CPU
------------ ---
mfemvedr 1,17 %
macmnsvc 0,78 %
services 0,39 %
svchost 0,00 %
searchindexer 0,00 %
googlecrashhandler 0,00 %
googlecrashhandler64 0,00 %
wmiprvse 0,00 %
csrss 0,00 %
winlogon 0,00 %
and when I try to get the value with script_fields, gives me the following error:
A document doesn't have a value for a field
this is part of the query, I have another script_fields in the query and they work
"script_fields": {
"top": {
"script": {
"lang": "painless",
"source": """doc["tops.keyword"].value"""
}
}
}
this is how the values looks like in Kibana Discover:

Why Im getting this error? could be that the values contains special characters? line breaks?