I am trying to create a simple script field to display the key size of the SSL certificate, the key size value differs between 256 to 270 bytes, so I created the below script field.
if (doc['ssl_certificate_subject_key_size.keyword'].value >= 256 && doc['ssl_certificate_subject_key_size.keyword'].value <= 270 )
After I configured this scripted field, I am getting the error "llegal_state_exception a document doesn't have a value for this field"
"reason": "No field found for [ssl_certificate_subject_key_size.keyword] in mapping
Can someone help to sort out this issue?