Elasticsearch Regex data and replace value

Hello :),
any idea how to change the Value (Mozilla/5.0 … etc) with my extracted variable Browser? And grouping by Browser
I don’t find how to do it with the documentation…

The goal is to have only the pie with only the Name of the Browser as extracted by my variable.

Thank you for your help :slight_smile: