kibana/packages/kbn-esql-utils/README.md
Marco Antonio Ghiani ac66e7cb44
[One Discover] Add row indicators for log documents (#190676)
## 📓 Summary

Closes #190457 

This change extracts the logic around the logs document
controls/indicator from Logs Explorer and registers the same controls in
Discover through the extension point added in #188762.

The controls are registered only for the `logs-data-source-profile`
contextual profile.


https://github.com/user-attachments/assets/40adfb19-357f-46e1-9d69-fc9c0860c832

## 👣 Next steps
- [ ] https://github.com/elastic/kibana/issues/190670
- [ ] https://github.com/elastic/kibana/issues/190460

---------

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-09-11 15:11:31 +02:00

922 B

@kbn/esql-utils

This package contains utilities for ES|QL.

  • getESQLAdHocDataview: Use this function to get correctly an adHoc dataview for your query.
  • getIndexPatternFromESQLQuery: Use this to retrieve the index pattern from the from command.
  • getLimitFromESQLQuery: Use this function to get the limit for a given query. The limit can be either set from the limit command or can be a default value set in ES.
  • removeDropCommandsFromESQLQuery: Use this function to remove all the occurences of the drop command from the query.
  • appendToESQLQuery: Use this function to append more pipes in an existing ES|QL query. It adds the additional commands in a new line.
  • appendWhereClauseToESQLQuery: Use this function to append where clause in an existing query.
  • retrieveMetadataColumns: Use this function to get if there is a metadata option in the from command, and retrieve the columns if so