[Filebeat][TCP] - Add support for a TCP packet tracer #39824
Open
Description
Enhancement: We need to add tracing capabilities for the TCP input, similar to how we have tracing for Httpjson/CEL inputs. This can be achieved with the gopacket library since it directly allows us to write to a pcap file that can hold the tcp dump.
Use case: Oftentimes users face issues while debugging tcp input related issues, while many are able to leverage the tcpdump tool, in many scenarios the user would find it much easier if we had an integrated solution shipped as part of the input/ dependant integration packages. This change would help our users have an easier time with tcp based packages and help them debug issues more efficiently.