cvtienhoven / graylog-plugin-aggregates

Aggregates plugin for Graylog
https://marketplace.graylog.org
GNU General Public License v3.0
53 stars 12 forks source link

Any way to suppress [AggregatesMaintenance] removed 0 history items #26

Closed 123dev closed 6 years ago

123dev commented 7 years ago

Will it be possible to suppress the following messages appearing in Graylog logs every minute? [AggregatesMaintenance] removed 0 history items

Perhaps the log level can be changed from Info to Debug

Thanks

andbus commented 7 years ago

It's important to make changes very carefully.

Previous (2.0.1) version used to generate log alerts as [Aggregates]: 2017-08-27T07:08:08.389+02:00 INFO [Aggregates] 154 found for SubjectUserNameDelete=username

Newer (2.1.0) has changed it to [AggregatesAlertCondition]: 2017-10-05T15:15:13.718+02:00 INFO [AggregatesAlertCondition] 34 found for SubjectUserNameRead=username

It would be very helpful if such a changes could be announce as release notes or something else. I'm using this logs to extract count of founds.

cvtienhoven commented 7 years ago

@andbus There's a changelog in the README that you can check for changes. The change you mention is part of the following:

Fully integrated alerting with the native Graylog notifications method, including message backlog (#24, #25)

That's a big change, please forgive me that I can't mention every change of a log line / logging class. It would take longer to write the change log than to actually implement the change :)

Btw, if you're dependent on such logging and ask yourself what's needed for an upgrade, nothing stands in your way to peek into the class that logs your line and check if something changed.

@123dev I'll take it into consideration, it's a rather repetitive message that doesn't really tell much useful about business logic.

123dev commented 7 years ago

@cvtienhoven Thanks for taking this into consideration. :)

ghost commented 6 years ago

Any update on this? This message is still generated in the graylog-server log file every minute. Would be good to have a way of configuring this - Either being able to change the interval and/or like previously mentioned, setting the log level type of the message.

cvtienhoven commented 6 years ago

This has been fixed in version 2.3.0. The message is now logged at debug level.