Hello Alain,
Sorry I wasn't clear about the second option.
In order to monitor any logfile, in this case the output of rsyslog you can use the Log collection capability.
A simple configuration would be on the agent's /var/ossec/etc/ossec.conf adding:
<ossec_config>
<localfile>
<location>/var/log/example.log</location>
<log_format>syslog</log_format>
</localfile>
</ossec_config>
where you can change /var/log/example.log to the output of rsyslog
Alternatively you can do this change remotely from the manager by adding the agent to a group and changing the shared configuration for that group to include that configuration.
But in summary you could run from the manager:
/var/ossec/bin/agent_groups -a -g rsyslogserver
/var/ossec/bin/agent_groups -a -i <AGENT-ID> -g rsyslogserver
where <AGENT-ID> is the ID number of the rsyslog server
And then add the same configuration as before to the /var/ossec/etc/shared/rsyslogserver/agent.conf
I hope this helps,