For openSUSE Tumbleweed run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Base:System/openSUSE_Tumbleweed/Base:System.repo
zypper refresh
zypper install logrotate
For openSUSE Factory run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Base:System/openSUSE_Factory/Base:System.repo
zypper refresh
zypper install logrotate
For assist repo checker run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Base:System/assist_repo_checker/Base:System.repo
zypper refresh
zypper install logrotate