rsyslog configuration for multiple client senario

I am using rsyslog to send logs to remote server. I have n number of devices running the same build. so the hostname of all the device is same. How do I differentiate logs from each client in the server. is it possible to enable TLS without a certificate installed in the device instead use a certificate obtained from server during handshaking.