Graylog2 / Graylog2/graylog2-server

Empty indices are incorrectly included in the search target

Open
#6,016 7 comments 0 reactions 0 assignees View on GitHub
bug elasticsearch good first issue triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

Empty indices are **INCORRECTLY** included in the search target

## Expected Behavior
Only indices with messages should be targeted

## Current Behavior
Empty indices are **INCORRECTLY** targeted in **EVERY** search

## Steps to Reproduce (for bugs)
1. Make sure that you have at least one empty index which is **NOT** active write index
2. Make a search using what ever settings you like
3. Empty index is included in the search target

![Screen Shot 2019-06-16 at 19 31 20](https://user-images.githubusercontent.com/24830359/59567121-0ec56600-9072-11e9-8914-f531e18ffd83.png)

![Screen Shot 2019-06-16 at 19 32 21](https://user-images.githubusercontent.com/24830359/59567122-1258ed00-9072-11e9-9763-046eadddfb34.png)

![Screen Shot 2019-06-16 at 19 32 06](https://user-images.githubusercontent.com/24830359/59567124-1553dd80-9072-11e9-9ee3-394bb2a23c38.png)

## Context
Confuses user when it seems that a simple queries might seem to target multiple indices

## Your Environment

* Graylog Version: 3.0.1
* Elasticsearch Version: 6.7.2
* MongoDB Version: 4.0.7
* Operating System: CentOS 7
* Browser version: Safari

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.