excel.asciidoc 2.3 KB

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