-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Histogram to show current and last week data #1244
Comments
Nope. #645 |
What you can do (which is not a nice solution, but one that works for this use case and all others concerning graphing two separate data in one histogram) is to graph two values, in separate documents, using two distinct queries and the Date Histogram. Specifically you can add the extra (last week) document to ES with the "last week data". You will need some field that identifies "lastweek" docs, vs. "normal" docs (to query for last week data, as opposed to this weeks). Then add the relevant metric, where the Field name is the same in both lastweek doc and this week doc (if it is called Webpage.Pageviews in the first doc, it should be in Webpage.Pageviews in the second). That way you will have: two docs, where one has the value for this week, and where the other has the value for time - 1 week, and then you can graph these in the standard way. Make sure to "shift" the datestamp "forward" 1 week on the second document as well. So that that time will correspond to the data you already have. This will bloat your data, but if you minimize the new docs to only contain the relevant metric, and the timestamp, you are only losing the metadata created for the second doc. Best of luck, I really hope that #374 comes through soon, with "choose timestamp" to visualize, or choose off-set in time, that would solve this issue as well. |
+1 |
1 similar comment
+1 |
+1 in Kibana 4. Or maybe this is a duplicate of #2756 |
👍 |
1 similar comment
+1 |
Waiting for this feature! |
+1 |
+1, very important for us |
+1, important feature to have in upcoming Kibana version. |
As a stopgap, until Kibana supports the specifically requested feature (this week's and last week's data in the same histogram), I am using the Date Range aggregation with date math in Kibana 4.1.0 to show this week's and last week's data arranged side-by-side in separate bar chart visualizations in a dashboard, like this:
For example: (In case you're wondering about the data: it's from a development/sandbox system, not a "production" environment.) Here's the bucket specification for "Tuesday last week": The heart of this technique is the date math expression Notes:
I'm using variations of this technique to do other comparisons of time intervals. Here's a work-in-progress experiment: Each (unlabeled 😞 ) bar represents a day of the week. Each chart represents a week (two consecutive weeks). I'm considering kludging a "dummy" bar chart visualization (with no actual data) above this visualization, with days of the week as x-axis labels. If you can get past the lack of labels, this arrangement makes it easy to see differences: for example, more transactions occurred on Wednesday (the third bar) of the second week than on Wednesday of the first week. (Minor point: I've yet to make adjustments in the date ranges of this visualization to account for time zone.) I'm a relative newcomer to ELK, so, while I hope these details might be useful to others, I'd also appreciate feedback and suggestions; including, for example, "Your technique is fundamentally flawed. Here's why: ...". |
+1 |
1 similar comment
+1 |
+1 |
👍 |
+1 Additional to comparing two date ranges with the same data precision, it would be nice to compare aggregated data against details: What is my day like compare to average/max of last month's data aggregated to time of day in hours/minutes buckets? |
+1 |
This is now possible using the timelion plugin! https://www.elastic.co/blog/timelion-timeline |
As noted, possible in Timelion |
In date range field, I have the impression that we are limited in the number of parameters . For example, if I put the following expression , it's ok : but if I add parameters , I get an error for: I really feel that the error is related to the number of parameters , not a syntax error . Is it possible to exceed this limit ? I need to recover first Tuesday of every month Can you help me ? |
+1, would be great to have natively supported in kibana |
+1 |
+1 |
3 similar comments
+1 |
+1 |
+1 |
I want to be able to lock certain visualizations on my dash to relative time ranges from 'now', such that I can have a graph for each day for the e.g. past 3 days from 'now' and each of those graphs are plotted on a per-minute time-scale irrespective of the dashboard time range. |
+1 |
+1 |
8 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
7 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1, much-needed future. |
Hi All - Time Series Visual Builder offers an offset feature. Creating a series based on the last week of data is as simple as modifying a setting in the metric options. This feature is available in 5.4. I am going to close this issue as we introduced this feature but please let me know if for any reason you'd like to re-open. (the blue metric is last week here, I forgot to update the label) |
Any info on this? +1 |
You can export data to Prometheus and use it’s query language to do so.
…Sent from my iPhone
On Jun 4, 2018, at 05:33, tega90 ***@***.***> wrote:
Any info on this? +1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I would like to show access log traffic data and would like to compare with last week data in the same histogram. Is it possible? It will be two lines the last week line will be in a shaded color. just like how I have done in graphite in attached image.
The text was updated successfully, but these errors were encountered: