stream 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.

you can put same string in source and target, can’t you?

STREAM_MATCHED

Why yes, I can. Thank you!

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]" 
}

Thanks Kevin,

I now need to look into the payload of strictly TCP (TNS between servers and Oracle database). Any pointers?