Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.24k stars 1.05k forks source link

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

Open jdonnelly-apixio opened 3 years ago

jdonnelly-apixio commented 3 years ago

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

  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

dennisoelkers commented 3 years ago

Hey @jdonnelly-apixio,

thanks for reporting this. Do you see any errors in your browser console?

jdonnelly-apixio commented 3 years ago

I do not, all 200s. Not sure if helpful, but one other thing I just noticed was the type text next to the field when clicking from the message is unknown, but long when doing the work around.

dennisoelkers commented 3 years ago

Thanks for the response, @jdonnelly-apixio.

Is this reproducible, i.e. do you see the same behavior

  1. for all fields?
  2. after a full refresh of the browser?
  3. every time you start a new search?