Graylog2 / Graylog2/graylog2-server

Improve histogram data sampling

Open
#2,604 2 comments 0 reactions 0 assignees View on GitHub
improvement web
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

### Problem description

In situations where histograms contain few relevant data points, histograms may appear empty due to the algorithm we use to down-sample the data. The problem is specially bad when graphs have a small width, and histograms include many data points (either by spanning over a long period of time, or by using a small resolution).

For instance, a graph including a single data point (`"result":{"1470221520":1}`), may end up looking like this:

screen shot 2016-08-03 at 16 43 54

This is the result of the same graph, just resized to be wider:

screen shot 2016-08-03 at 16 44 22
### Steps to reproduce the problem
1. Do a search over the last day with few results
2. Create a search results widget using minute as resolution
3. Once on the dashboard, make the widget narrow, to increase the chances the problem occurs
4. See how some (or all) data points appear and disappear "randomly"
### Environment
- Graylog Version: 2.0.3 / 2.1.0-beta.2

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.