I need to write some scripts for network analysis like gathering the network data according to the rules given. The rules is like a filters ( like in tcpdump we use the grammar rules protocol tcp and udp ).
Anyone suggest where can I start reading about this? And necessary modules for capturing the network traffic on the specific servers or group of servers.