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

Total over time (integrals) #740

Closed
passkey1510 opened this issue Nov 29, 2013 · 96 comments · Fixed by #10033
Closed

Total over time (integrals) #740

passkey1510 opened this issue Nov 29, 2013 · 96 comments · Fixed by #10033
Assignees
Labels
Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement v5.4.0

Comments

@passkey1510
Copy link

I'm wondering if there is a way to have a chart of total hits over time. Here is an use case:

  • Each time a new user is registered, a log message is sent, hence there is 1 hit
  • I would like to see the chart of user growth during a period of time, I'm thinking of a histogram with total hits in that period.

But I don't know how to do this in histogram configuration, any help please?

@kryachkov
Copy link

Same question and the same purpose 👍

@kryachkov
Copy link

Did anyone do this before?

@jorgelbg
Copy link

jorgelbg commented Dec 9, 2013

Why can't you use the provided histogram? In the log message you have the timestamp, and therefor each time you have a document in ES is a new event, so you could use the count option for the chart value; With this configuration (the same you see in kibana in the events over time graph, for each interval of time ES will count how many events (i.e registrations) occurred and plot that value in the histogram).

For instance, I've a graph that looks like this:

screen shot 2013-12-09 at 12 21 30 am

In this case in my log file every time a query hits the search server (which I'm monitoring) a log line with a lot of information is stored in ES, and in kibana (in this graph) I show how many events (i.e queries or registrations) are registered.

@kryachkov
Copy link

Standard histogram is not enough becase it shows number of events that came in specified moment of time (for example your histogram shows that at 00:00 10-28 200 events were logged), we need to see total growth of events count overtime. Thus chart will be always growing.

@passkey1510
Copy link
Author

@kryachkov 👍. Yes, that is what we would like to have. A simple use case is when you want to see how your total user growth during a month.

@kryachkov
Copy link

For better understanding, this how it should behave:

This is simple histogram: http://goo.gl/bI6mwP
Tick "Cumulative" in "Graph options" on the right. This is what we are seeking for

@rashidkpc
Copy link
Contributor

Right now there is no elasticsearch aggregation that makes this possible. It is possible you could fake it by doing a histogram facet for your current time range, and then a query facet for everything before it. Then add the before number to the first bucket and totaling the buckets sequentially, adding the result of the previous bucket to the next.

@Francis88
Copy link

I think I got the idea but struggle with the "add the before number to the first bucket and totaling the buckets" part. I have one histogram facet and one query facet like (time<"at"). How do I access the result of the query as a "field" I can then add to the histogram

@dblado
Copy link

dblado commented Feb 27, 2014

+1

@oliviervaussy
Copy link

+1

2 similar comments
@Francis88
Copy link

+1

@galarragas
Copy link

+1

@RickHoving
Copy link

Any updates on this functionality?

@skymeyer
Copy link

skymeyer commented Jun 5, 2014

+1

@rashidkpc
Copy link
Contributor

This would require a method for reducing/combining buckets in Elasticsearch. I believe this is being worked on and we might be able to make it work in the future.

@rashidkpc rashidkpc changed the title Total over time in histogram Total over time Oct 7, 2014
@rashidkpc rashidkpc changed the title Total over time Total over time (integrals) Nov 18, 2014
@tcucchietti
Copy link

+1

4 similar comments
@sbehrens
Copy link

+1

@TobiasOtt
Copy link

+1

@atulsm
Copy link

atulsm commented Dec 15, 2014

+1

@ghost
Copy link

ghost commented Jan 3, 2015

+1

@Lloydshove
Copy link

+1
Is this achievable already in Kibana 4?

@the-fine
Copy link

+1

1 similar comment
@tcoupland
Copy link

+1

@pemontto
Copy link

👍

3 similar comments
@m-breen
Copy link

m-breen commented Jun 24, 2016

+1

@Greybird
Copy link

+1

@ebertti
Copy link

ebertti commented Jun 24, 2016

+1

@patrickkusebauch
Copy link

For those interested for just cumulative sum graphs. I have made a port of a kibana plugin, that can do that. https://github.com/patrickkusebauch/kibana-plugin-line-sg

@leeway23
Copy link

leeway23 commented Jul 1, 2016

+1

3 similar comments
@Kudryavets
Copy link

+1

@liucheng98
Copy link

+1

@JulieZY
Copy link

JulieZY commented Aug 9, 2016

+1

@andremilk
Copy link

I was wondering if there is a way to make the cumulative "global".
I managed to get a date histogram of cardinality over time and use cumulative_sum over that, but the problem is that the cardinality is only true to that particular interval of my date histogram.

@T3rm1
Copy link

T3rm1 commented Aug 23, 2016

Wow, is this still not possible although elasticsearch has support for over a year now?
EDIT: Just tried Kibana 5 alpha 5 and even there is no support for pipeline aggregations. Can someone explain to me why such an important and basic feature is not being worked on?

@jasonmhead
Copy link

+1

5 similar comments
@pwiatrowski
Copy link

+1

@epotocko
Copy link

+1

@brooksandrew
Copy link

+1

@olivierlambert
Copy link

+1

@czimamori-daichi
Copy link

+1

@MohMaz
Copy link

MohMaz commented Oct 22, 2016

+1

@tbragin tbragin added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) labels Nov 9, 2016
@Dom-nik
Copy link

Dom-nik commented Dec 22, 2016

+1

@ghost
Copy link

ghost commented May 31, 2017

Im looking something similar, calculate the time over threshold, in a day histogram,
for example: how many hours was the value over 15. ten minutes, 90minutes..
is it posible ?

@suyogdilipkale
Copy link

In Kibana 5.5.2, using Cumulative Sum aggregation matrix I am able to plot hourly hits vs total hits count on area chart:
image

w33ble pushed a commit to w33ble/kibana that referenced this issue Sep 13, 2018
* [WIP][Design] Cleanup canvas part 1 (elastic#697)

Part 1 of dave messing around with the design of canvas.

* Converted bootstrap button groups to EUI button groups in text_style_picker (elastic#713)

* Moved elements and assets to workpad_header (elastic#714)

* Adds tabs to sidebar component (elastic#718)

* Changed sidebar to tabbed layout

* Removed unecessary done props from datasource_component and expression

* Removed unused props in toolbar

* [Design] Part 2 of design cleanup (elastic#715)

* hide nonfocus pages

* button group margins

* workpad panel styled

* header rework

* fix toolbar lint

* update to newest EUI, restyle sidebar tabs, some data source cleanup

* move title to footer

* Add some tooltips

* Fixed custom interval input in refresh controls (elastic#722)

* Fixes Editor Toggle (elastic#721)

* Removed unused selectedPage prop from workpad_header/index.js

* Fixed editor toggle

* Design part 3: page view, data sources, lots of cleanup (elastic#731)

Mostly changes around the page selector and data sources. Also fixes some of the hover issues for canvas elements.

* fix css import error

* [Design] Part 4 of design updates to canvas (elastic#732)

[Design] Part 4: selector rewrite

* Move expression editor back to bottom (elastic#733)

* Removed unused prop form sidebar_component

* Moved expression editor to toolbar

* [Design] Part 5: Cleanup and bugfixing before review (elastic#734)

* style up expression editor, fix resize handles

* hide controls when editing is hidden

* remove icons from element dropdown

* fix canvas grid

* Adds Modals (elastic#739)

* Changed datasource_preview to a modal

* Moved workpad_loader to modal

* address feedback (elastic#740)

* asset manager mostly styled (elastic#741)

* [Image function] support src (image url) in addition to dataurl (elastic#632)

* [Image function] support src (image url) in addition to dataurl

* unit test for httpurl

* fix other elements that use image

* clean up the diff

* more clean up diff

* Handle AJAX errors by showing a notification (elastic#717)

* timeout property for axios instance

* remove TODOS

* notifier class

* TODO

* second notification with the context

* redirect to home if workpad could not be fetched

* less noisy error checking

* Fix ES Docs indices select options (elastic#743)

* Catch more AJAX errors, show error in notification banner (elastic#736)

* catch more errors

* if es_fields fails, still render something

* generate default data in ajax fetches in case of failure

* feedback changes

* remove defaulting that catch makes unnecessary

* Remove run API (elastic#742)

It's not used anywhere and is no longer necessary. We can always recreate
it if the need arises.

* [Design] Part 4 of design updates to canvas (elastic#732)

[Design] Part 4: selector rewrite

* Changed icon to 'warning' in simple_failure

* Fixed canvas loading

* Fixed paginate controls file naming

* Changed color dot size

* Added missing aria-labels

* Fixed warnings

* Fixed expression warnings

* Fixed popovers

* Fixed merge conflicts for image_upload

* Changed placeholder text in custom interval input

* Styled debug render function

* Removed bootstrap from expression and show_debugging

* Changed buttons in expression editor

* Changed asset manager to modal

* Added 'canvas__element' class for BWC for custom CSS in old workpads

* Fixed fullscreen interactions and positioning

* Fixed overflow issue in asset manager

* Removed bootstrap in datasource component

* Changed text input to text area in timelion datasource

* Fixed sort field in esdocs

* Updated style of AssetManager

* Changed all inputs to compressed size

* Added max width for datasource_preview modal

* Fixed cursor when hovering over element in fullscreen mode

* Cleaned up tooltips

* Rearranged buttons in workpad_header

* Updated style to update_modal

* Forgot to remove debug line

* Cleaned up arg_add_popover

* Removed codeblock in update_modal

* Added 'dataurl=null' to image element initial expression

* Added null args to repeatImage and revealImage

* Fixed input validation in expression

* Bumped eui to v1.1.0

* fix: make refresh controls clearer

- Change disabled state to 'refresh this page manually'
- Don't show disable control unless auto-refresh is enabled
- Move disabled control under the refresh interval text

closes elastic#759

* fix: close refresh popover on selection

* fix: replace interval placeholder with help text

Closes elastic#757

* fix: replace EuiFormLabel with aria-labelledby

closes elastic#767

* fix: restore send to top/bottom controls

* fix: more usable page controls

- pull controls out of popover
- move PageControls component out of the preview
- fix link use, so controls actually work
- fix page layout for tall pages

* fix: use correct esdocs query value

* fix: better esdocs form labels

* chore: stricter prop type checking

and remove an unused prop check

* fix: style the unknown args datasource fallback

* fix: show correct sort field in esdocs

* fix: page control icon colors

* Fixed workpad_loader modal issue

* Cleaned up home page styles

* Fixed class name on confirm modal. Removed unused style in main.scss

* fix: flatten the workpad styles

easier to override them, which is handy for fullsceen and other cases

* fix: better fullscreen overrides

* chore: remove unused allowFullScreen props

* fix: workpad size in fullscreen mode

* chore: convert Positionable to a class component

* fix: map font object to flot spec

* fix: use flot font spec for flot output

* test: add font spec test, fix plot & axisconfig tests

* Fixed input refs in datacolumn

* Removed unnecessary styles

* chore: remove debugging console logs

* Fixed prop type error in expression form

* Fixed expression form bouncing from error messages

* fix: page controls visible with scroll bar

* fix: delete element click handler

* chore: bump EUI to 3.0.0

this is the version that will be landing in Kibana

* fix: match ContextMenu class to css rule

* chore: remove unused code

* chore: tiny update modal code refactor

* Replaced & with prefixes in asset_manager and suggestion SCSS files

* Replaced EUI link/icon with EuiButtonIcon

* Changed label for index pattern in esdocs form

* fix: add aria-label to EuiButtonIcon

* fix: restore highlight on hover

and remove the now unused ElementControls component

* chore: update classNames

use the new class naming convention

* chore: remove unused components

* Disabled selection and dragging for img in revealImage

* Add toolbar tray close button (elastic#842)

* Fixed range and percentage arg types (elastic#843)

* Change to preview images

* Chore: naming convention

* Fix EUI Tooltip component content props (elastic#850)

* Fix a small typo in a button icon and tooltip (elastic#851)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement v5.4.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.