Forum Discussion
Mike_Rausch_628
Nimbostratus
Aug 14, 2007TCP Info Logging
I am trying to write an irule that will log the TCP info that is being sent to and from the server/client. What exactly does the TCP::collect command grab?
1 Reply
Sort By
- Andy_Herrman_22
Nimbostratus
TCP::collect gets the raw bytes that are sent. The data collected will be available in the CLIENT_DATA event.when CLIENT_ACCEPTED { TCP::collect 16 } when CLIENT_DATA { For logging in other events set cli "[IP::client_addr]:[TCP::remote_port]" set dataVal [TCP::payload] binary scan $dataVal H16 hexRep log local0. "TCP connection ($cli) sent: $hexRep" }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects