I sometimes see errors like Error parsing query: Syntax error at offset 1 near 'x'
in logs and unsure if there's any way to see the actual query in logs? There doesn't seem to be any way to configure this at present.
You can use redis-cli
with the monitor
option to see the queries being executed. It's not exactly what you want but it can help you.
$ redis-cli -h <host-name> -p <port-name> monitor
In the same terminal window, you'll be able to see the queries being executed.
You can grep
over the output if you know what your erroneous query contains.
For example:
$ redis-cli -h <host-name> -p <port-name> monitor | grep -i "GET x"
In its current version (1.4.0), RediSearch does not provide this functionality. Please feel free to suggest it as a feature request at its repository.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.