Ingest data to opensearch data stream from logstash

Hi,
I’m trying to send logs to opensearch data stream from logstash using below configuration, where i see a normal index is getting created in opensearch as log index, but the backing index for data stream ia not getting created.
below output configuration is mentioned here - GitHub - opensearch-project/logstash-output-opensearch: A Logstash plugin that sends event data to a OpenSearch clusters and stores as an index.

      input {
        heartbeat {
          interval => 5
          message  => 'Hello from Logproc'
        }
      }
      filter {
        grok{
        }
      }
      output {
        opensearch {
            hosts => [ '{{ .Values.indexsearch.serviceName }}.{{.Release.Namespace}}:{{.Values.indexsearch.port }}' ]
            ssl => false
            index => "log"  # data stream name
            action => "create"
                    }
              }

can you pls help if any other additional parameters need to be added so that backing index would get created in opensearch?
also which index template will be getting used in this case?

@subha_1 Did you disable security plugin in OpenSearch?
If not, then you must provide username and password. Also enable SSL if the port 9200 is secured.