Graylog2 / Graylog2/graylog2-server

not able to generate statistics or chart from numeric when clicking from message

Open
#9,831 3 comments 0 reactions 1 assignee Claimed by @dennisoelkers View on GitHub
bug to-verify
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

We have numeric fields that are not able to generate the standard numeric statistics or charts when clicking from the message.

## Expected Behavior
When clicking statistics or chart on a numeric field, it should produce a statistics table with numeric statistics or a chart with numeric values displayed.

## Current Behavior
In the UI when clicking statistics or chart from the message, it does not produce the expected results. It creates a table or graph like it was a string field.

It should work like when clicking from the field section on the left hand side. This works on the same field in the same index.

## Possible Solution

## Steps to Reproduce (for bugs)
![graylog_stats_and_chart_issue_and_workaround_20201217_1400](https://user-images.githubusercontent.com/20955706/102549208-94174580-4070-11eb-8f12-0e8e4646291a.png)
1. Search for log messages with numeric fields.
2. In the message table, expand the message and for a numeric field select statistics or chart.
3. The chart or stats table that is generated looks like it was for a string field.

## Context
It is confusing behavior for engineers and the work around is not intuitive.

## Your Environment

* Graylog Version: 4.0.1
* Java Version: OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode, sharing)
* Elasticsearch Version: 7.10.1
* MongoDB Version: 4.2.10
* Operating System: Windows 10 (and same behavior on Macs)
* Browser version: Version 1.18.70 Chromium: 87.0.4280.101 (Official Build) (64-bit)

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.