Forum Discussion
OTS02
Cirrus
Apr 18, 2015stream profile to detect only?
Can a stream profile be used to simply detect a unique string of characters, without actually replacing that string? If so, could you point me to an example of how to accomplish this? I would like to examine TNS traffic to/from an Oracle server and log matches.
4 Replies
- nitass
Employee
you can put same string in source and target, can't you?
STREAM_MATCHED
https://devcentral.f5.com/wiki/iRules.STREAM_MATCHED.ashx - OTS02
Cirrus
Why yes, I can. Thank you!
- Kevin_Davies_40
Nacreous
Try this.
when HTTP_RESPONSE { STREAM::disable if {[HTTP::header value Content-Type] contains "text"}{ STREAM::expression {&http://.*?example\.com&} Enable the stream filter for this response only STREAM::enable } } when STREAM_MATCHED { log local0. "[IP::client_addr]:[TCP::local_port]: matched: [STREAM::match]" } - OTS02
Cirrus
Thanks Kevin,
I now need to look into the payload of strictly TCP (TNS between servers and Oracle database). Any pointers?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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