elasticsearch query traceID -


i put data elasticsearch through logstash. run first command:

curl 'http://localhost:9200/_search?q=traceid=1428074818422&pretty=true' 

the elasticsearch return result traceid 1428074818422.

but when use second command:

curl 'http://localhost:9200/_search?pretty=true' -d'{     "query":{     "term" : {"traceid" : "1428074818422"}     } }' 

the elastcsearch can not find result.

i want kown reason problem , how can solve it,thanks.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -