Add pega alert number to json when using LogStashJSONLayoutPega
We would like to export the Pega Alert Number to a dedicated field in the JSON output of our alert logging. We currently use prlog4j.xml to configure alertrule logging and we are using the LogStashJSONLayoutPega pragma as we ship our logs to Elasticsearch. However a dedicated JSON field for the alertrule is missing (it's part of the message), this is inconvenient when investigating issues. How can we configure our logging such that it will output the PEGA alertrule to a dedicated field in the JSON body?
***Edited by Moderator Marije to add Capability tags***