How to retrieve the documents(records) of a saved search in elastic search

Please format your code using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

Please edit your post.

I moved your question to #kibana as I think you want to export from the UI not from the CLI.

Note that there is a CSV export available in xpack (commercial plugin).