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

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