I just installed brandnew logstash 5.0 beta1 but it seem that package does not include the logrotate script.
[root@BS-POC-Test-Env logstash]# yum install logstash
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package logstash.noarch 1:5.0.0~beta1-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================================================================
Package Arch Version Repository Size
=========================================================================================================================================================
Installing:
logstash noarch 1:5.0.0~beta1-1 elasticsearch-5.x 101 M
Transaction Summary
=========================================================================================================================================================
Install 1 Package
Total download size: 101 M
Installed size: 189 M
Is this ok [y/d/N]: y
Downloading packages:
logstash-5.0.0-beta1.rpm | 101 MB 00:00:16
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:logstash-5.0.0~beta1-1.noarch 1/1
**chmod: cannot access ‘/etc/logrotate.d/logstash’: No such file or directory**
Using provided startup.options file: /etc/logstash/startup.options
Successfully created system startup script for Logstash
Verifying : 1:logstash-5.0.0~beta1-1.noarch 1/1
Installed:
logstash.noarch 1:5.0.0~beta1-1
Complete!
[root@BS-POC-Test-Env logstash]#
rpm -ql shows no logrotate script bundled inside.
[root@BS-POC-Test-Env logstash]# rpm -ql logstash | grep logrotate
[root@BS-POC-Test-Env logstash]#
I used the below repository.
[logstash-5.x]
name=Elastic repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x-prerelease/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md