Page 2 of 2

Re: Importing query data

Posted: Fri Feb 06, 2015 7:47 pm
by stecino
stecino wrote:
tmcdonald wrote:The semicolons in your query shouldn't be there, and you have one too many "q"s. Try this:

Code: Select all

curl -XGET 'http://127.0.0.1:9200/logstash-2015.02.05/_search?q=type:LTM302_log&pretty'
what if I wanted to do multiple fileds, and also multiple index files, how can I do it, please?

Can you give me an example?

I was able to research, and got this

curl -XGET 'http://127.0.0.1:9200/logstash-2015.02. ... IP"&pretty'

But stil, I want to be able to display all the reported hits,that it doesn't show

Re: Importing query data

Posted: Fri Feb 06, 2015 8:39 pm
by stecino
stecino wrote:
stecino wrote:
tmcdonald wrote:The semicolons in your query shouldn't be there, and you have one too many "q"s. Try this:

Code: Select all

curl -XGET 'http://127.0.0.1:9200/logstash-2015.02.05/_search?q=type:LTM302_log&pretty'
what if I wanted to do multiple fileds, and also multiple index files, how can I do it, please?

Can you give me an example?

I was able to research, and got this

curl -XGET 'http://127.0.0.1:9200/logstash-2015.02. ... IP"&pretty'

But stil, I want to be able to display all the reported hits,that it doesn't show
curl -XGET 'http://127.0.0.1:9200/logstash-2015.02. ... 000&pretty'

This did the trick, need to specify the size

Re: Importing query data

Posted: Mon Feb 09, 2015 10:24 am
by tmcdonald
Great to hear! I'll be closing this thread now, but feel free to open another if you need anything in the future!