tshark 4.0.10 --log-level unrecognized option
CentOS 9 does not have a recent build of wireshark-cli or wireshark, so I downloaded and built wireshark-4.0.10.tar.xz as an RPM for CentOS 9. The only errors I observed were requirements for other Linux variants. The RPM installed without issue.
Before I installed the 4.0.10 RPM, I uninstalled wireshark-cli 3.4.10-6 that I had installed as part of my server without GUI. I know I am at 4.0.10 because this version of wireshark supports tcp.completeness, whereas 3.4.10-6 did not.
When I run tshark, it returns this error and lists the available options:
tshark: unrecognized option '--log-fatal'
The "Diagnostic output" section that includes --log-fatal is missing, but is present if I run 'tshark --help'.
I am only playing around with an old laptop, so I could simply backup, wipe, and rebuild so there are no artifacts from 3.4.10-6. But if anyone has a suggestion or fix, I am willing to work through this so I don't need to rebuild.
Do you happen to have wireshark-devel 3.4.10-6 installed?
Thank you for your response.
I did not install wireshark-devel 3.4.10-6, only wireshark-cmd 3.4.10-6. I uninstalled what I had built and installed wireshark-devel 3.4.10-6. I also rebooted.
With wireshark-devel, the "Diagnostic output" section now missing in tshark --help. But when tshark returns the error: tshark: unrecognized option '--log-fatal', the help is now consistent with --help.
I want to try and use "--log-fatal warning" to exit to see if it changes the exit status when tshark hits a packet that produces the following issue.
* (process:2226): WARNING *: 11:28:47.843: Dissector bug, protocol TLS, in packet 557998: epan/dissectors/packet-tls-utils.c:6271: failed assertion "offset <= offset_end"
What is output of
tshark -v
?Thank you Chuck,
I suspect that 3.4.10 in "CentOS Stream release 9" is supposed the same as 4.10.
(more)It doesn't seem that the Wireshark you built is first in the path so an older version of Wireshark is being called.