Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified explore-analyze/images/esql-line-breakdown.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 9 additions & 5 deletions explore-analyze/query-filter/languages/esql-kibana.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,22 @@ FROM kibana_sample_data_logs | LIMIT 10

### Make your query readable [_make_your_query_readable]

For readability, you can put each processing command on a new line. The following query is identical to the previous one:
For readability, you can put each processing command on a new line and add indentation. The following query is identical to the previous one:

```esql
FROM kibana_sample_data_logs
| LIMIT 10
| LIMIT 10
```

You can do that using the **Add line breaks on pipes** button from the query editor’s footer.
You can do that automatically using the {icon}`pipeBreaks` **Prettify query** button from the query editor’s footer.

:::{note}
In versions 9.1 and earlier, this option is called **Add line breaks on pipes**.
:::

:::{image} /explore-analyze/images/esql-line-breakdown.gif
:alt: Automatic line breaks for ES|QL queries
:width: 50%
:alt: Automatic line breaks and indentation for ES|QL queries
:width: 75%
:::

You can adjust the editor’s height by dragging its bottom border to your liking.
Expand Down
Loading