Exclude some indexes from elasticsearch query

I am using _all as index pattern and this causes kibana-4 to search every possible index. As kibana-4 has its own .kibana index, it tries to search for the required data in .kibana index and since it doesn't parse the data there it throws some parsing exceptions. So Is there any way by which I can configure kibana-4 to exclude .kibana for searching..


Solution 1:

I was able to successfully ignore the .kibana index by using the following request:

curl 'localhost:9200/*,-*kibana/_search?q=*:*'

This will search all indices (the first "*") excluding all indices that end with "kibana".