Importing query data

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Re: Importing query data

Post 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
stecino
Posts: 248
Joined: Thu Mar 14, 2013 4:42 pm

Re: Importing query data

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Importing query data

Post 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!
Former Nagios employee
Locked