Can i collect and parse TCP response messages from a server and port ? if so kindly help me with the config file and steps

To collect and parse (TCP/UDP) packets install packetbeat in the host where you want to trap the packets then point it to logstash.

Refer this link for more details https://www.elastic.co/products/beats/packetbeat