Hi,
I need to use URI type of query string format (not the -d json type), and I need to specify the time range in the search string, but not sure how.
this works nicely:
curl -s -XGET ".../logstash-*/_search?size=5&q=metrictype:os+fields:datetime,cpu,disk"
after adding in the time, it failed:
curl -s -XGET '.../logstash-*/_search?q=metrictype:os+datetime:["2016-08-30 10:00:00" to "2016-08-30 10:30:00" ]+fields:datetime,cpu,disk'
or
curl -s -XGET ".../logstash-*/_search?q=metrictype:os+datetime:["2016-08-30 10:00:00" to "2016-08-30 10:30:00" ]+fields:datetime,cpu,disk"
Anyone has a working example? Thanks a lot!