excel.asciidoc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [role="xpack"]
  2. [[sql-client-apps-excel]]
  3. === Microsoft Excel
  4. You can use the {es} ODBC driver to access {es} data from Microsoft Excel.
  5. 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.
  6. ==== Prerequisites
  7. * https://products.office.com/en/excel[Microsoft Office] 2016 or higher
  8. * {es-sql} <<sql-odbc, ODBC driver>>
  9. * A preconfigured User or System DSN (see <<dsn-configuration,Configuration>> section on how to configure a DSN).
  10. ==== Load data into a spreadsheet
  11. First, you'll need to choose ODBC as the source to load data from. To do so, click on the _Data_ tab, then _New Query_ button, in the
  12. drop-down menu expand _From Other Sources_, then choose _From ODBC_:
  13. [[apps_excel_fromodbc]]
  14. .ODBC as data source
  15. image:images/sql/odbc/apps_excel_fromodbc.png[]
  16. This will open a new window with a drop down menu populated with the DSNs that Excel found on the system. Choose a DSN configured to
  17. connect to your {es} instance and press the _OK_ button:
  18. [[apps_excel_dsn]]
  19. .Choose a DSN
  20. image:images/sql/odbc/apps_excel_dsn.png[]
  21. This will lead to a new window, allowing the user to input the connection credentials.
  22. A username might be required by Excel even if the {es} instance has no security enabled. Providing a bogus username with no password in
  23. this case will not hinder the connectivity. Note however that Excel will cache these credentials (so in case you do have security enabled,
  24. you won't be prompted for the credentials a second time).
  25. Fill in the username and the password and press
  26. _Connect_.
  27. [[apps_excel_cred]]
  28. .Provide connection credentials
  29. image:images/sql/odbc/apps_excel_cred.png[]
  30. Once connected, Excel will read {es}'s catalog and offer the user a choice of tables (indices) to load data from. Clicking on one of the
  31. tables will load a preview of the data within:
  32. [[apps_excel_picktable]]
  33. .Pick table to load
  34. image:images/sql/odbc/apps_excel_picktable.png[]
  35. Now click the _Load_ button, which will have Excel load all the data from the table into a spreadsheet:
  36. [[apps_excel_loaded]]
  37. .Data loaded in spreadsheet
  38. image:images/sql/odbc/apps_excel_loaded.png[]
  39. // vim: set noet fenc=utf-8 ff=dos sts=0 sw=4 ts=4 tw=138 columns=140