# Jdbc\_password\_filepath

**URL:** <https://discuss.elastic.co/t/jdbc-password-filepath/144680>\
**Category:** Logstash\
**Created:** [August 16, 2018, 9:47am UTC](https://discuss.elastic.co/t/jdbc-password-filepath/144680 "2018-08-16T09:47:21Z")\
**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 16, 2018, 9:47am UTC](https://discuss.elastic.co/t/jdbc-password-filepath/144680/1 "2018-08-16T09:47:21Z")

</div>

How to use jdbc\_password\_filepath?

It's not clear how it works  
I don't want my password and username exposed in logstash config file and want a single file where these are stored.

So what should jdbc\_user and jdbc\_password contain in logstash.conf file and what values should the text file contains which should be at jdbc\_password\_filepath?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 16, 2018, 10:27am UTC](https://discuss.elastic.co/t/jdbc-password-filepath/144680/2 "2018-08-16T10:27:59Z")

</div>

The password file should simply contain the password. Store the username in `jdbc_user` as usual.

---

<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 16, 2018, 11:13am UTC](https://discuss.elastic.co/t/jdbc-password-filepath/144680/3 "2018-08-16T11:13:45Z")

</div>

Thanks Magnus. I was able to make use of logstash Keystore and it seems to be much better option

---

<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, 11:13am UTC](https://discuss.elastic.co/t/jdbc-password-filepath/144680/4 "2018-09-13T11:13:50Z")

</div>

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