Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OPenSearch v 2.13.0/Dashboard/Ubuntu/Edge
Describe the issue:
I’m trying to search pattern “www.xyz.com/
” in the message field in all events in documents in my index. I want exact match for “www.xyz.com/
”. I don’t want “www.xyz.com/path1
” or “www.xyz.com/path2/ab.js
” etc. Only exact “www.xyz.com/
”. I tried many search queries and I found that the match for / character is not working.
Here are the queries that I tried,
In DQL,
Query 1
message:"\"requestUrl\":\"www.xyz.com/\""
Query 2
message:"\"requestUrl\":\"www.xyz.com/\"" AND NOT message:"\"requestUrl\":\"www.xyz.com/*\""
Query 3
message:"\"requestUrl\":\"www.xyz.com\/\""
Lucene
Query 1
message:/\"requestUrl\":\"www\.xyz\.com\/\"$/
I tried a few more combinations but the gist of the matter is / slash is not matching and I’m not able to filter out events/documents with my exact need.
ANy help would be helpful. I went through the documentation but it wasn’t helpful.
**Configuration**:
**Relevant Logs or Screenshots**: