elasticsearch - forward slash issue in ELK query strings -


i have elk query in query_string looks like:

{"query_string":{"query":"context.productname:abc/def"}} 

this fails.

but, following works:

{"query_string":{"query":"context.productname:abc\\/def"}} 

lets have value in variable like

let productname = 'abc/def'

what right way escape variable works elk query?


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -