middleware injection occurs when processing the logstasher initializer