diff --git a/server/parsers/ppl_parser.ts b/server/parsers/ppl_parser.ts index 0386e1ef2..ecdae53a2 100644 --- a/server/parsers/ppl_parser.ts +++ b/server/parsers/ppl_parser.ts @@ -31,12 +31,7 @@ export const PPLParsers: MessageParser = { if (!ppls.length) return []; - const statsPPLs = ppls.filter((ppl) => /\|\s*stats\s+[^|]+\sby\s/i.test(ppl)); - if (!statsPPLs.length) { - return []; - } - - return statsPPLs.map((query) => { + return ppls.map((query) => { const finalQuery = query .replace(/`/g, '') // workaround for https://github.com/opensearch-project/dashboards-observability/issues/509, https://github.com/opensearch-project/dashboards-observability/issues/557 .replace(/\bSPAN\(/g, 'span('); // workaround for https://github.com/opensearch-project/dashboards-observability/issues/759