I want to use the field in body of email alert.
field name is "cps-aks.paranoid"
I can access the field using the following syntax - ctx.payload.hits.hits.0._source.cps-aks.paranoid.
Problem is there is a dot in the field "cps-aks.paranoid", due to which I am getting blank in while using moustache template {{ctx.payload.hits.hits.0._source.cps-aks.paranoid}}.
How can I escape the dot in the field name and access the value in email body?
there is no way in mustache to access that field as far as I know. However you could use a transform to change the field names from foo.bar to foo-bar.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.