Note: This Lua script may cause a crash in the newest version of Wireshark, see #18439. Make sure the version of Wireshark is earlier than v4.0.0.
You need to put PulsarApi.proto to a separate path.
Open your Wireshark.
Go to Edit > Preferences > Protocols > ProtoBuf > Protobuf, and then search paths.
Add the path of PulsarApi.proto.
Check Dissect Protobuf fields as Wireshark fields
box. When this box is checked, you can use pbf.pulsar.proto
to visit fields in protobuf package.
Open Wireshark.
Go to About Wireshark > Folders > Personal Lua Plugins > Plugin Path.
Add pulsar.lua to this path.
This plugin registers a Pulsar protocol automatically in 6650. You can use this Wireshark filter string to find out Pulsar packages (ignore ping/pong):
tcp.port eq 6650 and pulsar and pbf.pulsar.proto.BaseCommand.type ne "ping" and pbf.pulsar.proto.BaseCommand.type ne "pong"