Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert Notification not working with Graylog 6.1.1 and Telegram v2.5.0 #62

Open
anhdd95 opened this issue Nov 12, 2024 · 12 comments
Open

Comments

@anhdd95
Copy link

anhdd95 commented Nov 12, 2024

Describe the bug
Test Notification worked but Alert not working when event trigger
image
image
image

Here is alert trigger with email and Tele alert, but telegram not receive notify
image

Versions:

  • Graylog: 6.1.1
  • TelegramNotification: 2.5.0

Message Template:
###Graylog###
${if backlog}
${foreach backlog message}
${message.source} ${message.timestamp} ${message.message}
${end}
${end}

@irgendwr irgendwr added the bug label Nov 12, 2024
@irgendwr
Copy link
Owner

I can reproduce the issue. Thanks to you and @charles0103 for reporting it.

I don't see a stack trace in my Graylog log. Is the stack trace in your screenshot related to this issue? @anhdd95 if yes, could you please post it as text inside of a code block here?

The only thing that I get in my logs is something like:

ERROR [EventProcessorExecutionJob] The end of the timerange to process is in the future, re-scheduling job trigger <6733b8db0aa2f44449600087> to run at <2024-11-12T20:31:47.789Z>

but I'm not sure if that is related yet.

While this might be a bug in my plugin, it doesn't make any sense to me why the test notification works, but the "real" notification isn't triggered. I continue to be amazed at how weird and broken Graylog is.

I'll look into it, but as I said in a previous release note: I might stop working on this plugin. This is not fun anymore.

@irgendwr
Copy link
Owner

irgendwr commented Nov 12, 2024

oh, actually: after triggering the alert event multiple times, I'm now getting notifications sometimes. So it's not completely broken, but very unreliable...?

@charles0103
Copy link

charles0103 commented Nov 13, 2024

oh, actually: after triggering the alert event multiple times, I'm now getting notifications sometimes. So it's not completely broken, but very unreliable...?

Hello!suddenly one day, I received an alert on my telegram. I don’t know the reason. At present, the alert seems to have a notification. Thanks for designing this plug-in. I didn’t receive the alert before but I couldn’t find the problem in graylog. Thank you.

But,Telegram stopped sending messages today again QQ

@anhdd95
Copy link
Author

anhdd95 commented Nov 13, 2024

Hi, I found the issue. I created Stream with local user admin that I have deleted, I also search querry within this stream. Solution is delete Stream and recreate it with current user.

@charles0103
Copy link

Hi, I found the issue. I created Stream with local user admin that I have deleted, I also search querry within this stream. Solution is delete Stream and create again with current user.

But the admin I've been using for a while has created.

@anhdd95
Copy link
Author

anhdd95 commented Nov 13, 2024

look like you have same issue but different root cause as mine. Anyway thanks @irgendwr for created this plugin

@anhdd95 anhdd95 closed this as completed Nov 13, 2024
@charles0103
Copy link

I probably found the reason. If I set "Aggregation of results reaches a threshold" selected in Event Definition, the telegram alarm will not be notified, but if I select "Filter has results", the alarm notification will be normal.

@anhdd95
Copy link
Author

anhdd95 commented Nov 13, 2024

image
mine set like this. After all it's just human issue, not the plugin haha

@charles0103
Copy link

image mine set like this. After all it's just human issue, not the plugin haha

How to solve this problem?

@anhdd95
Copy link
Author

anhdd95 commented Nov 13, 2024

my issue was resolved after i delete and recreate Stream. Telegram alert working normally now

@irgendwr
Copy link
Owner

to me this still looks like a bug in the plugin or Graylog, so I'll keep the issue open for now, because something isn't working correctly

@irgendwr irgendwr reopened this Nov 13, 2024
@charles0103
Copy link

my issue was resolved after i delete and recreate Stream. Telegram alert working normally now

I don't have create a Stream, only a process using alert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants