Alias on bar chart

Hello, I have a bar chart in the picture. But the value of the fields I want to show on the chart is a long name. How can I make an alias for it ? Thanks

Untitled

Hi @br14nb0,

You can try creating a scripted field and shortening or aliasing the value manually there.

See this article: https://www.elastic.co/guide/en/kibana/current/scripted-fields.html

I mean I want to shorten the value of the field not the name of the field. Like shown in the picture, I just want to get the last string Taskmg.exe, regedit.exe,..etc. Anyway to use something like parse or regex ?

@br14nb0

Yea, the scripted field will transform the field value, not the name.

You can use like a .substring( on the raw value and reduce it however you like. Or you can use regexs