Pie Chart with latest Data

Hello,

i need some help to create a pie chart in a Dashboard with the latest Data.

Graylog Version: 5.2.10 as Docker Deployment

Enviroment:
My Firewall send the states of S2S VPN to Graylog, when the state is changed.
The keys in the message look very simplified like:
Name=VPN1 State=UP

Goal
Create a pie chart that show the latest states of all VPNs.
For example:
Latest three message of VPN1;2;3 are
Name=VPN1 State=UP
Name=VPN2 State=UP
Name=VPN3 State=DOWN
and the pie chart show: 66% VPNs are UP and 33% are DOWN.

Every time i used “latest data” in the metric, the Preview show nothing.

Thanks for Help.