graylog-labs / graylog-plugin-slack

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

backlog in reverse order #74

Open joeomc opened 6 years ago

joeomc commented 6 years ago

When iterating over backlog, messages appear in reverse order. The most recent message is first (reading top down) and the first messages is last. For example, I have a condition that triggers when a network interface state changes. When the interface goes down, then back up the messages in the backlog will be ordered with the up message printed before the down message.

Custom Message: Last messages accounting for this alert:

SW01 Ebra: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet33, changed state to up SW01 Ebra: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet33, changed state to down

They should be printed in the order they are received: down up