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

Scripting in histogram #692

Closed
zixicc opened this issue Nov 13, 2013 · 1 comment · May be fixed by larrycameron80/kibana#69
Closed

Scripting in histogram #692

zixicc opened this issue Nov 13, 2013 · 1 comment · May be fixed by larrycameron80/kibana#69

Comments

@zixicc
Copy link

zixicc commented Nov 13, 2013

hi.
in the date_histogram, the value_script is doc['record'].value
I get the partial result

{
"time" : 1383264000000,
"count" : 1059,
"min" : 0.008,
"max" : 12.607999999998452,
"total" : 6771.335999999965,
"total_count" : 1059,
"mean" : 6.3940849858356605
}

Is there a way to get the increment of the field 'record' during the time range and show the change in the graphs?
thanks

@rashidkpc
Copy link
Contributor

There is now a derivative mode in the histogram that supports this. it does not require scripting.

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

Successfully merging a pull request may close this issue.

3 participants
@rashidkpc @zixicc and others