Added key buffer to log message filtering