By default, the logs are not part of the ucs file as you can read in this SOL4423
`Contents of the UCS archive file
A UCS archive is a compressed file that contains all of the configuration files that are typically required to restore your current configuration to a new system. These files are:
All BIG-IP-specific configuration files
BIG-IP product licenses
User accounts and password information
Domain Name System (DNS) zone files and the ZoneRunner configuration
Secure Socket Layer (SSL) certificates and keys
But you can extend the ucs explained here (SOL4422). So you can choose which files should become part of the ucs.