Limit length in visualization

Hi all,

First happy new year!

One question.
Can I limit the length of a string in table data output? Column A is a string term, column B is count of events. As there are some terms which are slightly different, I'd like to group them.

For example:
So instead of the rows of 13033197350, 13033197351, 13033197352 I want one "130331" with a sum count of all three.

Is this possible?

Thank you and best regards,
Mario

hi @mitabrev,

you could look into using scripted fields: https://www.elastic.co/guide/en/kibana/current/scripted-fields.html

You can write a little script that truncates that value. That result is then the value for a new "scripted field". Then, you can run any other ES-query against that new field.

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