Closed JakubDziworski closed 6 years ago
Using custom message how can I select custom fields? Suppose I want to display only full_message . I checked Message class (https://github.com/Graylog2/graylog2-server/blob/master/graylog2-server/src/main/java/org/graylog2/plugin/Message.java) and it has getField method so you could theoretically use message.getField("full_message") but I guess the jmte templating engine does not allow methods :-1:
full_message
Message
getField
message.getField("full_message")
jmte
My bad. It's described here: http://docs.graylog.org/en/2.3/pages/streams/alerts.html#email-alert-notification. You can use message.fields.full_message
message.fields.full_message
Using custom message how can I select custom fields? Suppose I want to display only
full_message
. I checkedMessage
class (https://github.com/Graylog2/graylog2-server/blob/master/graylog2-server/src/main/java/org/graylog2/plugin/Message.java) and it hasgetField
method so you could theoretically usemessage.getField("full_message")
but I guess thejmte
templating engine does not allow methods :-1: