How to Access Field that made by Scripted field

Hi everyone,

i've been made scripted field like this:

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

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

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


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