graylog-labs / graylog-plugin-slack

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

Field "Custom message" not worked #71

Closed BrainsRage closed 6 years ago

BrainsRage commented 6 years ago

Hi, we have a problem. With your plugin v2.4 we has beautiful messages like image But when we upgrade version to 3.0.1 message began to look so image We tryed to change "custom message" field in plugin options, but no difference. Help us to use v3. Thx.

Aenima4six2 commented 6 years ago

@BrainsRage, we need more information to help diagnose your issue. Please include the following:

  1. Graylog Version
  2. Notification configuration (including your custom message)
BrainsRage commented 6 years ago
  1. Graylog 2.4.3+2c41897
  2. image

    
    ##########
    Alert Description: ${check_result.resultDescription}
    Date: ${check_result.triggeredAt}
    Stream ID: ${stream.id}
    Stream title: ${stream.title}
    Stream description: ${stream.description}
    Alert Condition Title: ${alert_condition.title}
    ${if stream_url}Stream URL: ${stream_url}${end}

Triggered condition: ${check_result.triggeredCondition} ##########

${if backlog}Last messages accounting for this alert: ${foreach backlog message}${message}

${end}${else} ${end}

Aenima4six2 commented 6 years ago

@BrainsRage , can you send a test message from Graylog and report back what shows up in your slack channel please?

BrainsRage commented 6 years ago

Yes. image

derFunk commented 6 years ago

Same issue here. The custom_message field is not used for Outputs. It's working for Alerts (Notifications) though.

SonicGD commented 6 years ago

Hi, any news on this? We have the same problem

Aenima4six2 commented 6 years ago

@SonicGD @derFunk @BrainsRage I'm cutting a branch for this as we speak. Does the image below look like it would work for you? image

Aenima4six2 commented 6 years ago

Issue fixed in 3.1.0.

andela-sjames commented 6 years ago

@Aenima4six2 can't find the .jar file for the new release?

Aenima4six2 commented 6 years ago

@andela-sjames Looks like Travis had an issue pushing the jar. I'm re-running CI/CD for this release.

Fixed -> Release

BrainsRage commented 6 years ago

Fixed, thanks!

andela-sjames commented 6 years ago

Thanks