excel.asciidoc 2.4 KB

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