Skip to content

Commit

Permalink
One liner to expose the EQL query for debugging for users (#100565)
Browse files Browse the repository at this point in the history
## Summary

Expose the EQL query in the Kibana logs for detections when they are being run when Kibana in debug mode.
  • Loading branch information
FrankHassanabad authored and kibanamachine committed May 25, 2021
1 parent ecbdb51 commit 26967ec
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ export const eqlExecutor = async ({
ruleParams.eventCategoryOverride
);
const eqlSignalSearchStart = performance.now();
logger.debug(
`EQL query request path: ${request.path}, method: ${request.method}, body: ${JSON.stringify(
request.body
)}`
);
// TODO: fix this later
const { body: response } = (await services.scopedClusterClient.asCurrentUser.transport.request(
request
Expand Down

0 comments on commit 26967ec

Please sign in to comment.