# Installed Elasticsearch docker does not have a password

**URL:** https://discuss.elastic.co/t/installed-elasticsearch-docker-does-not-have-a-password/281805
**Category:** Elasticsearch
**Tags:** docker
**Created:** [August 18, 2021, 10:12am UTC](https://discuss.elastic.co/t/installed-elasticsearch-docker-does-not-have-a-password/281805 "2021-08-18T10:12:25Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [September 14, 2021, 2:10pm UTC](https://discuss.elastic.co/t/installed-elasticsearch-docker-does-not-have-a-password/281805/7 "2021-09-14T14:10:55Z")

</div>

You need to send your existing data to elasticsearch.  
That means:

- Read from the database (`SELECT * from TABLE`)
- Convert each record to a JSON Document
- Send the json document to elasticsearch, preferably using the `_bulk` API.

Logstash can help for that (have a look at [MongoDB Logstash Integration [Solved]](https://discuss.elastic.co/t/mongodb-logstash-integration-solved/122299)). But I'd recommend modifying the application layer if possible and send data to elasticsearch in the same "transaction" as you are sending your data to the database.

I shared most of my thoughts there: [Advanced Search for Your Legacy Application - -Xmx128gb -Xms128gb](http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/)

Have also a look at this ["live coding" recording](https://www.elastic.co/fr/blog/how-to-add-powerful-search-existing-sql-applications-elasticsearch-video-tutorial).

---

_[View the full topic](https://discuss.elastic.co/t/installed-elasticsearch-docker-does-not-have-a-password/281805)._
