Back to listing

TelegramAlarmCallback

Plugin initial

Send graylog alerts to telegram using telegram-cli

Somewater
free!

Published

07 Oct 11:44

Last Push

13 Mar 16:23

Marketplace Rating

Discussion

2 Comments

Your Rating

Please sign in to rate this add-on.

Comments

prtomasi about 1 year ago

I think I found the solution:

I've changed the message_template field to:

[${stream.title}](${stream_url}): ${alert_condition.title}
```
${foreach backlog message}
source: ${message.source}
${message.message}
${end}
```

Now it's more clear to read in Telegram

:-)

prtomasi about 1 year ago

Hi,

Is it possible to change the message the plugin sends to telegram?
At now, it sends the full message like this:

source: 200.200.200.200 | message: interface,info MikroTik: ether3 link up (speed 1G, full duplex) { level: -1 | gl2_remote_ip: 200.200.200.200 | gl2_remote_port: 51564 | streams: [000000000000000000000001, 5888e29a82f6cfb8209830fb] | gl2_source_node: 1b5dd6d1-7ac8-4b3c-b76d-0a06b67395b4 | _id: c4635b10-5933-11e8-83de-00155d2fec21 | gl2_source_input: 5886895782f6cfb63c232700 | facility: Unknown | timestamp: 2018-05-16T18:05:50.784Z }

It would be interesting to have a more clear message like this:

source: 200.200.200.200 | message: interface,info MikroTik: ether3 link up (speed 1G, full duplex)

How can I do that?

Please sign in to comment.

Back to listing