# Graylog decorator to handle field formatting? Numeric math or number mask?

**URL:** <https://community.graylog.org/t/graylog-decorator-to-handle-field-formatting-numeric-math-or-number-mask/3360>\
**Category:** Graylog Central (peer support)\
**Created:** [December 1, 2017, 3:06pm UTC](https://community.graylog.org/t/graylog-decorator-to-handle-field-formatting-numeric-math-or-number-mask/3360 "2017-12-01T15:06:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![texas-bronius](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/texas-bronius/32/1051_2.png) [@texas-bronius](https://community.graylog.org/u/texas-bronius)\
**Post date:** [December 1, 2017, 3:06pm UTC](https://community.graylog.org/t/graylog-decorator-to-handle-field-formatting-numeric-math-or-number-mask/3360/1 "2017-12-01T15:06:53Z")

</div>

I have “duration” in my apache logs as microseconds. That makes requests taking 3 seconds show as 3M (3,000,000) in the charts, but I would prefer to chart just seconds. I haven’t found a field decorator to convert the numeric value: Is there such a thing? Only pipeline rules to create a new field maybe?

Side request for more context: In charts, how can I adjust or normalize scale of plotted numbers so that I can, for instance, merge http response duration (currently 1M - ~50M) atop Load averages (0.00 - ~5.00) and not have the duration millions values completely eclipse the \< 10 unit Load graph?

Thanks  
-Bronius

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [December 1, 2017, 3:25pm UTC](https://community.graylog.org/t/graylog-decorator-to-handle-field-formatting-numeric-math-or-number-mask/3360/2 "2017-12-01T15:25:29Z")

</div>

> [@texas-bronius](#):
>
> I haven’t found a field decorator to convert the numeric value: Is there such a thing?

No and it wouldn’t help because charts are using the pristine field value, not the “decorated” value.

---

<div class="post-metadata">

**Author:** ![maniel](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/maniel/32/58_2.png) [@maniel](https://community.graylog.org/u/maniel)\
**Post date:** [December 1, 2017, 5:35pm UTC](https://community.graylog.org/t/graylog-decorator-to-handle-field-formatting-numeric-math-or-number-mask/3360/3 "2017-12-01T17:35:58Z")

</div>

you can use kibana for more advanced charts, it can format numeric fields through [Numeral.js](http://numeraljs.com/), like bytes as KBs, GBs etc, so maybe it converts μs to s

---

<div class="post-metadata">

**Author:** ![texas-bronius](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/texas-bronius/32/1051_2.png) [@texas-bronius](https://community.graylog.org/u/texas-bronius)\
**Post date:** [December 4, 2017, 3:09pm UTC](https://community.graylog.org/t/graylog-decorator-to-handle-field-formatting-numeric-math-or-number-mask/3360/4 "2017-12-04T15:09:33Z")

</div>

Thank you @maniel- Do you have any definitive links about how this integration could work? Hoping it was a 1-2 quick plugin to Graylog seems to indicate otherwise. Looks like Kibana would be a whole new front end alongside Graylog? Possibly hosted on the same server that has both Graylog and its Elasticsearch backend?

Thanks!  
-Bronius

---

<div class="post-metadata">

**Author:** ![maniel](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/maniel/32/58_2.png) [@maniel](https://community.graylog.org/u/maniel)\
**Post date:** [December 4, 2017, 5:51pm UTC](https://community.graylog.org/t/graylog-decorator-to-handle-field-formatting-numeric-math-or-number-mask/3360/5 "2017-12-04T17:51:32Z")

</div>

it’s pretty straightforward, you just point kibana install at graylog’s elasticsearch in config/kibana.yml and run it, there is not much more setup, even node.js is bundled

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [December 18, 2017, 5:52pm UTC](https://community.graylog.org/t/graylog-decorator-to-handle-field-formatting-numeric-math-or-number-mask/3360/6 "2017-12-18T17:52:20Z")

</div>

Closed on December 18, 2017, 5:52pm UTC

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