lua output v23.5

Rebased version of #1090 

Prscript:
- PR build: https://buildbot.openinfosecfoundation.org/builders/inliniac/builds/14
- PR pcaps: https://buildbot.openinfosecfoundation.org/builders/inliniac-pcap/builds/14