check results increase retention period


#1

Hello,

For the purpose of audits and some otter stuff I need to save the check results longer then the default (around 20 I think). Is there an easy way like an option parameter to specify the number of the saved check results or do I need to have a look at the code?

Im open for tips and suggestions, thank you in advance!

Cheers

Chris


#2

Hi Chris,

There is no way to increase the default check retention period, and this probably isn’t really what you want to do since redis is treated pretty much like ephemeral storage when it comes to Sensu. Standard practice is to use a handler to write events to a database. A popular configuration is to run an ELK (elasticsearch/logstash/kibana) cluster and use a logstash handler to write events to it. A logstash handler is available from the Sensu Plugins project.

Hope this helps,

Rob

···

On 1 February 2016 at 08:25, chris85lang@googlemail.com wrote:

Hello,

For the purpose of audits and some otter stuff I need to save the check results longer then the default (around 20 I think). Is there an easy way like an option parameter to specify the number of the saved check results or do I need to have a look at the code?

Im open for tips and suggestions, thank you in advance!

Cheers

Chris