Logstash parses just the uri portion so i'm searching on the string of
'/pic2af45362bcd322cd/image1.jpg'
If i was using pcre i would say something like... |
"^/pic[a-f0-9]{16}/image[0-9].jpg$"
In reading the documentation on ES/lucene regex (queries are always
anchored / not full pcre) i think i should be able to search like so: uri://pic[a-f0-9]{16}/image[0-9].jpg/
This does not seem to work. If I search for uri:/pic[a-f0-9]{16}/ it
works, but i have a less exact query. I also tried this query in sense and
receive the same problem, it's almost as if it does not recognize the
forward slashes in regex.
How do you get ES to recognize the / in regex queries if its a character
that doesnt have an escape? I see that you can escape it in standard dsl
queries but apparently not in regex queries?
Logstash parses just the uri portion so i'm searching on the string of
'/pic2af45362bcd322cd/image1.jpg'
If i was using pcre i would say something like... |
"^/pic[a-f0-9]{16}/image[0-9].jpg$"
In reading the documentation on ES/lucene regex (queries are always
anchored / not full pcre) i think i should be able to search like so: uri://pic[a-f0-9]{16}/image[0-9].jpg/
This does not seem to work. If I search for uri:/pic[a-f0-9]{16}/ it
works, but i have a less exact query. I also tried this query in sense and
receive the same problem, it's almost as if it does not recognize the
forward slashes in regex.
How do you get ES to recognize the / in regex queries if its a character
that doesnt have an escape? I see that you can escape it in standard dsl
queries but apparently not in regex queries?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.