graylog-labs / graylog-plugin-slack

Graylog alarm callback for Slack
https://www.graylog.org
Apache License 2.0
117 stars 52 forks source link

Custom fields #67

Closed JakubDziworski closed 6 years ago

JakubDziworski commented 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:

JakubDziworski commented 6 years ago

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