ignacioli opened a new issue #13019:
URL: https://github.com/apache/pulsar/issues/13019


   **Background describe**
   Current 
[elasticsearch-sink](https://pulsar.apache.org/docs/en/io-elasticsearch-sink/#configuration)
 has a solid `indexName` configuration, which is inflexible, we must specific 
the index name accurately when creating the  elasticsearch-sink.
   ```bash
   $ bin/pulsar-admin sinks create \
       --archive connectors/pulsar-io-elastic-search-2.8.1.nar \
       --tenant public \
       --namespace default \
       --name elasticsearch-test-sink \
       --sink-config-file elasticsearch-sink.yml \
       --inputs elasticsearch_test
   $ cat elasticsearch-sink.yml 
   configs:
       elasticSearchUrl: "http://localhost:9200";
       indexName: "my_index"
       typeName: "doc"
       username: "scooby"
       password: "doobie"
   ```
   
   **Enhancement request**
   A clear and concise description of any alternative solutions or features 
you've considered.
   Request to support  rolling create index configuration like following:
   ```bash
   $ cat elasticsearch-sink.yml 
   configs:
       elasticSearchUrl: "http://localhost:9200";
       indexName: "my_index-%Y-%m-%d"
       typeName: "doc"
       username: "scooby"
       password: "doobie"
   ```
   key feature: 
   `indexName: "my_index-%Y-%m-%d"`, which is a common use of elasticsearch 
client.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to