# How to do Logstash JDBC Output with SSH

**URL:** <https://discuss.elastic.co/t/how-to-do-logstash-jdbc-output-with-ssh/239760>\
**Category:** Logstash\
**Created:** [July 3, 2020, 9:05am UTC](https://discuss.elastic.co/t/how-to-do-logstash-jdbc-output-with-ssh/239760 "2020-07-03T09:05:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JF-GIAMMARI](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jf-giammari/32/71434_2.png) [@JF-GIAMMARI](https://discuss.elastic.co/u/JF-GIAMMARI)\
**Post date:** [July 3, 2020, 9:05am UTC](https://discuss.elastic.co/t/how-to-do-logstash-jdbc-output-with-ssh/239760/1 "2020-07-03T09:05:49Z")

</div>

Hi, I'm using JDBC as output to store logs in a mySQL database, but the mySQL server is not on the same server, so I need to launch an SSH connection before making my command, otherwise the connection fails.

I've been blocked for several days, do you have any idea how to do this?

Thanks for your answers

---

<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:** [July 31, 2020, 9:06am UTC](https://discuss.elastic.co/t/how-to-do-logstash-jdbc-output-with-ssh/239760/2 "2020-07-31T09:06:00Z")

</div>

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