# JDBC Input Plug In : Read password and username from external file

**URL:** <https://discuss.elastic.co/t/jdbc-input-plug-in-read-password-and-username-from-external-file/142799>\
**Category:** Logstash\
**Created:** [August 2, 2018, 6:52pm UTC](https://discuss.elastic.co/t/jdbc-input-plug-in-read-password-and-username-from-external-file/142799 "2018-08-02T18:52:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Divit\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divit_sharma/32/32348_2.png) [@Divit\_Sharma](https://discuss.elastic.co/u/Divit_Sharma)\
**Post date:** [August 2, 2018, 6:52pm UTC](https://discuss.elastic.co/t/jdbc-input-plug-in-read-password-and-username-from-external-file/142799/1 "2018-08-02T18:52:39Z")

</div>

I don't want to write username and password in JDBC input of logstash.conf file but I want to import it from another config file. Can anyone explain if this can be done? I don't want my password/username to be exposed in logstash.config file

I found jdbc\_password\_filepath but nothing much has been explained about this.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [August 2, 2018, 6:58pm UTC](https://discuss.elastic.co/t/jdbc-input-plug-in-read-password-and-username-from-external-file/142799/2 "2018-08-02T18:58:52Z")

</div>

How about the [keystore](https://www.elastic.co/guide/en/logstash/current/keystore.html)?

---

<div class="post-metadata">

**Author:** ![Divit\_Sharma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divit_sharma/32/32348_2.png) [@Divit\_Sharma](https://discuss.elastic.co/u/Divit_Sharma)\
**Post date:** [August 2, 2018, 7:15pm UTC](https://discuss.elastic.co/t/jdbc-input-plug-in-read-password-and-username-from-external-file/142799/3 "2018-08-02T19:15:20Z")

</div>

Thanks a lot. This looks good. Let me try it out and if I face any issues I will respond.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 13, 2018, 9:57am UTC](https://discuss.elastic.co/t/jdbc-input-plug-in-read-password-and-username-from-external-file/142799/5 "2018-09-13T09:57:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
