Suricata instalaltion in Ubuntu 22.04

what’s the version of suricata that work in ubuntu 22.04 and with elastic 8.x ? and someone give me the doc to install it
thanks.

You can either install it from source or use the Ubuntu PPA for a package, see 3. Installation — Suricata 6.0.6 documentation for more details

On version 7 of suricata it works fine with the elastic stack.