Logstash for opensearch

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.7.0 wants to upgrade in 2.15.0
for opensearch search assistance

Describe the issue:
right now i have logstash version running on 7.12.1 and working on upgrade to logstash to compatible with oss version so i have pull the latest image available for opensearch which is 8.9.0 . the issues is this version is no longer maintained so my seniors does not want me to install the mentioned version what should i do. i can’t replace the logstash because its sending the data into opensearch and kafka simultaneously any idea.

Configuration:

Relevant Logs or Screenshots: