Grouping values in graphic


I am trying to create a new visualize by counting values by url in Kibana.


I would like to create a script to create a new field.

Like url_resource and just see /home_page and /home.

How can I divide the url?

Thank you very much in advance

Maybe something like this would work:

def url = doc['url'].value;
return url.substring(url.lastIndexOf('/') + 1);


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