Skip to content

Commit

Permalink
One liner to expose the EQL query for debugging for users (elastic#10…
Browse files Browse the repository at this point in the history
…0565)

## 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 ecezalp committed May 26, 2021
1 parent 4c6ca64 commit 86ac550
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 86ac550

Please sign in to comment.