How to Only Print Lua Output with Tshark

I am using a Lua script with tshark and when I run it with -V I get the protocol decode output. When I try anything else to limit output to just the Lua decoded data I am not having any luck. i.e.

tshark -X lua_script:my.lua -r input.pcap.gz -w output.pcap -O "my lua protocol" or tshark -X lua_script:my.lua -r input.pcap.gz -w output.pcap -O "my lua protocol" -V

even when I try -O udp -V I do not get the protocol output.

Any ideas?

1

1 Answer

Try tshark option -q like in tshark -X lua_script:RatingGroup.lua -r OneGy_sess_DIAMETER_Dialogue-6_on_06_Jun.pcap -q

As you can see no decoded packets:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest