How to Access Field that made by Scripted field

Hi everyone,

i've been made scripted field like this:
image

From the script, it generates field named expire_days with number data type
image

and I have also created an alert that points to this index. The problem is if i want to show expire_days value in alert message, how do i do it? i tried like this but it didn't work. i used context.hits also to call fields under _source
image

but how to call a field under fields in alert message? fyi, i used v7.17.0 and the alert that i made was an elasticsearch query type

Thanks

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