[role="xpack"] [[xpack-sql]] = SQL Access :sql-tests: {xes-repo-dir}/../../qa/sql :sql-specs: {sql-tests}/src/main/resources :jdbc-tests: {sql-tests}/src/main/java/org/elasticsearch/xpack/qa/sql/jdbc :security-tests: {sql-tests}/security/src/test/java/org/elasticsearch/xpack/qa/sql/security [partintro] -- X-Pack includes a SQL feature to execute SQL against Elasticsearch indices and return tabular results. There are four main components: <>:: Accepts SQL in a JSON document, executes it, and returns the results. <>:: Accepts SQL in a JSON document and translates it into a native Elasticsearch query and returns that. <>:: Command line application that connects to Elasticsearch to execute SQL and print tabular results. <>:: A JDBC driver for Elasticsearch. -- include::getting-started.asciidoc[] include::endpoints/index.asciidoc[] include::functions/index.asciidoc[] include::language/index.asciidoc[] :jdbc-tests!: