Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Histograms over day-of-week, month-of-year, day-in-month. #561

Closed
brolund opened this issue Oct 10, 2013 · 6 comments
Closed

Histograms over day-of-week, month-of-year, day-in-month. #561

brolund opened this issue Oct 10, 2013 · 6 comments

Comments

@brolund
Copy link

brolund commented Oct 10, 2013

I'd like to be able to plot a histogram over e.g nr of requests per day-of-week (Mon, Tue, ...), summarized over the selected period.

Creating such histograms is possible if I have the x-axis defined in another field (like plotting response bytes against response time).

My request is that Kibana pulls the data for the x-axis from the timestamp.

I could probably solve this in e.g. Logstash by adding a field or tag for day-of-week, day-of-month and month-of-year, but it would be more elegant to have it in Kibana.

One possibility is that this feature is already available, but I have searched for all the terms I could come up with, and read the docs that I found relevant, to no avail.

@slothbag
Copy link

I'd be particularly interested in month-of-year and quarter-of-year also..

It looked like a month interval was considered but then removed, see #609

@qraynaud
Copy link

qraynaud commented Jun 4, 2014

I don't know if Elasticsearch can even express this... I believe this is very missing.

@rashidkpc
Copy link
Contributor

Elasticsearch can do it, but it requires scripting. We're working on a better, safer, scripting model that might make this possible, but unfortunately storing another field is the only good way todo it right now.

@qraynaud
Copy link

qraynaud commented Jun 4, 2014

Yeah, I knew this was possible to do it using scripting. I found this bug looking for a way to do it without. I opened elastic/elasticsearch#6408 to provide a good semantic to express this without using scripts.

@koocotte
Copy link

This look very interesting.

I would also like to plot a serie in an interval and it's max/mean/min on the past. It will probably not fit in the histogram panel as designed today.

This would allow to see if I have more/less requests on this monday that on previous mondays, of this day/week/month/year comparing to previous.

The trends panel is interesting, but does not work well with the histogram panel and does not display series.

@rashidkpc
Copy link
Contributor

As elasticsearch has made scripts safer we've created a kibana roadmap item for creating scripted fields. I'm going to close this ticket since we have an open scripted fields ticket: #1537

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants
@qraynaud @brolund @koocotte @slothbag @rashidkpc and others