Are you talking about RS-232 virtual COM port? If so, I doubt there is any ready-to-use solution. If not, can you describe a little more detail a virtual COM port? OS and the data output format?
I am working on windows. I have connected a microcontroller via USB to my PC. The microcontroller is sending Accelerometer, gyroscope and current sensor data to the PC via that port. Normally if I want to read that data, I read it through a data logger software and write it in a .csv file. But I wanted to know if there is any way to read it directly to splunk instead of going through csv.
Unfortunately Splunk does not ship any connector or logger software to monitor the port, you need to find a third party tool to monitor the port and convert the signal to human readable data. The tool output needs to be passed to a standard out or write to a log file where Splunk can monitor.