User Chat History Logs in Rocketchat Server

Well, we first need to know how you deployed and at what version you are running it right now.

Based on that, you can issue some commands, thru CLI or even use some graphical softwares to extract the information you want.

You want to dump your database, and restore it into the production environment you have.

If your deployment was done with docker (which I recommend), please check this post about how to properly dump and restore it: