# ElasticHQ

**URL:** https://discuss.elastic.co/t/elastichq/58565
**Category:** Elasticsearch
**Created:** [August 22, 2016, 9:57am UTC](https://discuss.elastic.co/t/elastichq/58565 "2016-08-22T09:57:53Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![zen.xen](https://avatars.discourse-cdn.com/v4/letter/z/e495f1/32.png) [@zen.xen](https://discuss.elastic.co/u/zen.xen)
#### Post date: [August 22, 2016, 9:57am UTC](https://discuss.elastic.co/t/elastichq/58565/1 "2016-08-22T09:57:53Z")

</div>

Hello,  
I need some help, in ElasticHQ there is a button "Query", when I click it I get such interface:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/3/3b48dd955c7a9646d33bb95aef94c18d4d8d2680.JPG)

indices look like winlogbeat-2016.08.22, winlogbeat-2016.08.21 and so on, I would like to use a "Search Query ..." but I don't know how to use it. I was searching a sample in the Internet but I failed, could you give me a sample?

---

<div class="post-metadata">

### Author: ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)
#### Post date: [August 23, 2016, 11:11am UTC](https://discuss.elastic.co/t/elastichq/58565/2 "2016-08-23T11:11:56Z")

</div>

Since[ElasticHQ](http://www.elastichq.org/) is a third party plugin, I'd recommend asking on [the ElasticHQ community forums](https://groups.google.com/forum/#!forum/elastichq).

---

<div class="post-metadata">

### Author: ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)
#### Post date: [August 23, 2016, 1:35pm UTC](https://discuss.elastic.co/t/elastichq/58565/3 "2016-08-23T13:35:26Z")

</div>

Hi,

HQ is fine to trace out some stats of ElasticCluster . For querying purpose you can use head plugin it will provide a gui for search operations to make our searh process easy.

The following will work for ES v 1.5.2 you can choose plugin based on your es version.

query using sql which will give json query as well.

./bin/plugin -u [https://github.com/NLPchina/elasticsearch-sql/releases/download/1.4.9/elasticsearch-sql-1.4.9.zip](https://github.com/NLPchina/elasticsearch-sql/releases/download/1.4.9/elasticsearch-sql-1.4.9.zip) --install sql

head installation:

/plugin -install mobz/elasticsearch-head/1.x

you can access :9200/\_plugin/head

Phani

---

<div class="post-metadata">

### Author: ![zen.xen](https://avatars.discourse-cdn.com/v4/letter/z/e495f1/32.png) [@zen.xen](https://discuss.elastic.co/u/zen.xen)
#### Post date: [August 23, 2016, 6:45pm UTC](https://discuss.elastic.co/t/elastichq/58565/4 "2016-08-23T18:45:52Z")

</div>

Hi,  
looks good, thank you.

---

<div class="post-metadata">

### Author: ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)
#### Post date: [August 23, 2016, 10:15pm UTC](https://discuss.elastic.co/t/elastichq/58565/5 "2016-08-23T22:15:00Z")

</div>

There's also [Sense](https://www.elastic.co/blog/found-sense-a-cool-json-aware-interface-to-elasticsearch) if you're looking for an in browser query UI. The great feature of sense is that it provides context aware intellisense (autocompletion of query properties). [It can be installed as a plugin in Kibana.](https://www.elastic.co/guide/en/sense/current/installing.html)

---

<div class="post-metadata">

### Author: ![zen.xen](https://avatars.discourse-cdn.com/v4/letter/z/e495f1/32.png) [@zen.xen](https://discuss.elastic.co/u/zen.xen)
#### Post date: [August 24, 2016, 10:37am UTC](https://discuss.elastic.co/t/elastichq/58565/6 "2016-08-24T10:37:04Z")

</div>

Hi,  
when I can access :9200/\_plugin/head there is a tab `Any Request`, there is

![](https://us1.discourse-cdn.com/elastic/original/2X/6/6b614bc6a84d059c8572a345a836d6f592e62a29.JPG)

my question is, how to build a query to get any results?

---

<div class="post-metadata">

### Author: ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)
#### Post date: [August 24, 2016, 10:52am UTC](https://discuss.elastic.co/t/elastichq/58565/7 "2016-08-24T10:52:00Z")

</div>

That depends on what type of query you need to do 😉 I'd suggest[starting with Sense](https://www.elastic.co/guide/en/sense/current/installing.html) because the autocompletion will help you to learn the different queries, their parameters, and the syntax for them.

---

<div class="post-metadata">

### Author: ![zen.xen](https://avatars.discourse-cdn.com/v4/letter/z/e495f1/32.png) [@zen.xen](https://discuss.elastic.co/u/zen.xen)
#### Post date: [August 24, 2016, 11:01am UTC](https://discuss.elastic.co/t/elastichq/58565/8 "2016-08-24T11:01:45Z")

</div>

I'm just reading about Sense and it looks a little bit helpfull

---

<div class="post-metadata">

### Author: ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)
#### Post date: [August 24, 2016, 3:13pm UTC](https://discuss.elastic.co/t/elastichq/58565/9 "2016-08-24T15:13:08Z")

</div>

Hi Zen,

I am using es version 1.5.2 and head it will be look like following.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/e/ef0507f20f605cfcb2ac1c0fdd6e5a84d0cbb995.png)

head version is head 1.x. using structured query tab you can directly query es to get desired result.

Thanks  
phani

---

<div class="post-metadata">

### Author: ![zen.xen](https://avatars.discourse-cdn.com/v4/letter/z/e495f1/32.png) [@zen.xen](https://discuss.elastic.co/u/zen.xen)
#### Post date: [August 24, 2016, 4:14pm UTC](https://discuss.elastic.co/t/elastichq/58565/10 "2016-08-24T16:14:39Z")

</div>

Hi Phani,  
this tab that you show I understand how to use, but there is other one Any Request and this one I don't understand, maybe you know how to use it?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 10:25pm UTC](https://discuss.elastic.co/t/elastichq/58565/11 "2017-07-05T22:25:27Z")

</div>


