graylog-labs / graylog2-web-interface

[DEPRECATED]
https://www.graylog.org/
611 stars 174 forks source link

Month view in graphs with only 2 months of data #1541

Open IgoBoerrigter opened 9 years ago

IgoBoerrigter commented 9 years ago

2 months of data in a graph organized per month shows the wrong x axis.( June instead of june + juli) This seems to fail with only 2 months of data of which one is the current month.

screen shot 2015-07-28 at 12 34 36

edmundoa commented 9 years ago

Hi,

Could you share with us the widget configuration that generates that graph? It would help us a lot to reproduce the issue. You can find the JSON document by accessing this URL in your browser or curl: http://<graylog-web-interface-host>:9000/a/dashboards/<dashboard-id>/widgets/<widget-id>. Please remember to replace the Graylog web interface host, dashboard ID, and widget ID parameters from the URL.

Thank you!

IgoBoerrigter commented 9 years ago

{ "cache_time": 10, "config": { "interval": "month", "query": "remote_addr:(\"xxxxxxx\"\"xxxxxxx\"\"xxxxxx\"\"xxxxxx\"\"xxxxxxxx\") AND xxxxxx", "range": "0", "range_type": "relative", "stream_id": null }, "creator_user_id": "xxxxx", "dashboard_id": "559e446be4b0be325df2582a", "description": "Total request per month", "id": "8ff01fb4-8dbe-444e-815b-9e0cc20d9486", "type": "SEARCH_RESULT_CHART" }

IgoBoerrigter commented 9 years ago

this issues is no longer there as the data of august is now there. I stated before that the issue only occurs with two month of data of which the last is the current one. So i think recreating that situation will help you reproduce the bug.

IgoBoerrigter commented 9 years ago

tried to reproduce with a absolute range_type but did not reproduce the bug. Needs to be relative i guess.

edmundoa commented 9 years ago

I was able to reproduce it some days ago with an absolute timerange, but now I can't. Will move it out of the milestone and look into it with more time.