I have been trying to find a solution where I could check daily the list of error logs and summarize the message values with the same text and the count of each message type and include the results in a notification.
“User could not log in” x 3
“Invalid IP trying to access backend” x 1
“Invalid password when logging in” x 2
Instead of including all the backlog with the same messages:
User could not log in
User could not log in
User could not log in
Invalid IP trying to access backend
Invalid password when logging in
Invalid password when logging in
Trying to work out how to do this aggregation and include the count as a field in the backlog entry?
EDIT: Sorry I’v been work for two days, Tired . I just noticed you are also talking about notifcation configuration also. This is posible in creating a notification for your Event Definition.
I was hoping more to include all of the backlog messages into a single notification but instead of showing messages with the same message text that it would group by them and show the count so the notification content would look similar to this:
“Incorrect password” x 2
“DB connection error” x 5
“User cannot login” x 3
Instead as these are separate messages my notification looks like this at the moment:
Incorrect password
Incorrect password
DB connection error
DB connection error
DB connection error
DB connection error
DB connection error
User cannot login
User cannot login
User cannot login
I guess the core of my question is how can I group by the short message field and include the count of those within the backlog? maybe it’s not possible but thought I would ask.
The Create Events for Definition does have the count which shows message count in the notification but as for notifications to group them up on the free version of Graylog, I personally haven’t seen that yet.
I know this is not what you want, but you can accomplish this with three different streams and three different Events for Definition. Just an idea.