Verifying whether socket_listener input plugin gets packet

I am new to the influxdata. Trying to use telegraf to monitor the switch and feed the data into influxdb. I am able to make a TCP connection between switch and telegraf using socket_listener input plugin. Is there a way to verify whether the socket_listener input plugin received the packet from switch in the expected format?

The best way to is to watch the output, you can also temporarily add a file output for debugging. If socket_listener receives a packet that is incorrectly formatted it will also print a log message.

Hi Daniel,

Thanks a lot for the response. Used file output plugin for debugging. I didnt see any log message or anything in the output file as well. Doesnt mean that the socket_listener is not receiving the packet??