Function to divide a number by X


(Fadjer) #1

Hi,

I have a field in bytes format and I need to displayed it in a dashboard in megabytes format.

After reading in existing posts, the only available way seems to be the use of a pipeline, by making the conversion in a function and adding an new field.

But I did not notice any mathematical function to allow division, ideally integer divisionā€¦

I really want to avoid writing a plugin for a such basic stuff :frowning:

Do you know any existing add-on where can I find this kind of functions?

Any other solution for my problem is welcome :slight_smile:

Thanks in advance


(Jochen) #2

This functionality has been implemented as arithmetic operators, e. g. / for division.


(Fadjer) #3

Thanks for your quick answer.

It will be nice if you could improve this part of the documentation:

http://docs.graylog.org/en/2.4/pages/pipelines/rules.html


(Jochen) #4

Feels free to create a feature request (or even a pull request) in the documentation repository:


(Fadjer) #5

Just Done! Thanks again


(system) #6

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.