workbench.asciidoc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[sql-client-apps-workbench]]
  4. === SQL Workbench/J
  5. You can use the {es} JDBC driver to access {es} data from SQL Workbench/J.
  6. IMPORTANT: Elastic does not endorse, promote or provide support for this application; for native Elasticsearch integration in this product, please reach out to its vendor.
  7. ==== Prerequisites
  8. * https://www.sql-workbench.eu/[SQL Workbench/J] build 125 or higher
  9. * {es-sql} <<sql-jdbc, JDBC driver>>
  10. ==== Add {es} JDBC driver
  11. Add the {es} JDBC driver to SQL Workbench/J through *Manage Drivers* either from the main windows in the *File* menu or from the *Connect* window:
  12. image:images/sql/client-apps/workbench-1-manage-drivers.png[]
  13. Select *Elasticsearch* profile from the left-hand side (if it is missing check the SQL Workbench/J version or add a new entry to the list through the blank page button in the upper left corner):
  14. image:images/sql/client-apps/workbench-2-select-driver.png[]
  15. Add the JDBC jar (if the driver name hasn't been picked up already, click on the magnifier button):
  16. image:images/sql/client-apps/workbench-3-add-jar.png[]
  17. ==== Create a new connection profile
  18. With the driver configured, create a new connection profile through *File* > *Connect Window* (or Alt+C shortcut):
  19. image:images/sql/client-apps/workbench-4-connection.png[]
  20. Select the previously configured driver and set the URL of your cluster using the JDBC syntax.
  21. Verify the connection through the *Test* button - a confirmation window should appear that everything is properly configured.
  22. The setup is complete.
  23. ==== Execute SQL queries
  24. SQL Workbench/J is ready to talk to {es} through SQL: click on the profile created to execute statements or explore the data:
  25. image:images/sql/client-apps/workbench-5-data.png[]