Need to send data from .log file to AWS opensearch

AFAIK LS will work without installed Java because JDK is included. When you run it, 1st sentence is:
"Using bundled JDK: /path/logstash/jdk/bin/java.exe"

Which version of Logstash you are using

The latest 8.11.1. AFAIK 8.x and 7.something both have JDK included.