Hi Jhon, it is not necessary to use that configuration for Cisco devices.
This Rsyslog configuration you share with us is for the rsyslog daemon to monitor a file on the system, read line by line and adapt or generate a log in syslog format for each line read before sending it.
There is a typical use case for this, suppose you have a server to which you do not want to install a wazuh agent, since you only want to monitor the logs of an application. Also suppose that this application generates logs that do not correspond to the syslogs format and it is difficult to create a decoder that identifies these logs. Then with that rsyslog module you could "append" a syslogs header so that those logs are easily recognized by a custom decoder.
You can find more information about this rsyslog configuration here:
https://www.rsyslog.com/doc/v5-stable/configuration/modules/imfile.html
I hope this has answered your question.