How can I create a key setting that will check if a log message contains a string and outputs to a specific redis key? I was thinking something like this
output.redis: hosts: ["localhost"] keys: - key: "info_list" when.contains: message: "INFO" - key: "debug_list" when.contains: message: "DEBUG"
My understand of this example is it is suppose to check the line it receives from a log file and apply a corresponding key (i.e. if the message is "This is a DEBUG message" then the message will be saved to redis under the DEBUG key). However in my experience this isn't what is happening, it is simply not saving the messages to any key.