Open brokensound77 opened 3 years ago
Describe the bug Unquoted leading / must be escaped in KQL, since this is used for regex syntax with lucene
/
This
process.args:/lockscreenurl\:http*
should become
`"\\/lockscreenurl\\:http*"`
to mimic expected DSL conversion
but instead it is converted to
`"/lockscreenurl\\:http*"`
To Reproduce Steps to reproduce the behavior:
"\\/lockscreenurl\\:http*"
kql.to_dsl("process.args:/lockscreenurl\:http*")
Here is how Kibana does escaping of wildcard queries: https://github.com/elastic/kibana/blob/321430ecad5c05bef10e3549dc3b97663cb657dd/src/plugins/data/common/es_query/kuery/node_types/wildcard.ts#L26-L68
Describe the bug Unquoted leading
/
must be escaped in KQL, since this is used for regex syntax with luceneThis
should become
to mimic expected DSL conversion
but instead it is converted to
To Reproduce Steps to reproduce the behavior:
process.args:/lockscreenurl\:http*
in kibana"\\/lockscreenurl\\:http*"
kql.to_dsl("process.args:/lockscreenurl\:http*")
4 compare diffs