# Logstash beta - 1 does not include logrotate file

**URL:** <https://discuss.elastic.co/t/logstash-beta-1-does-not-include-logrotate-file/61680>\
**Category:** Logstash\
**Created:** [September 28, 2016, 9:40am UTC](https://discuss.elastic.co/t/logstash-beta-1-does-not-include-logrotate-file/61680 "2016-09-28T09:40:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [September 28, 2016, 9:40am UTC](https://discuss.elastic.co/t/logstash-beta-1-does-not-include-logrotate-file/61680/1 "2016-09-28T09:40:24Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 29, 2016, 5:49am UTC](https://discuss.elastic.co/t/logstash-beta-1-does-not-include-logrotate-file/61680/2 "2016-09-29T05:49:01Z")

</div>

Logstash 5 uses log4j for the logging and I believe the idea is to use its built-in rotation feature. Have a look at /etc/logstash/log4j2.properties.

> <https://github.com/elastic/logstash/issues/5650>

---

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [September 29, 2016, 6:45am UTC](https://discuss.elastic.co/t/logstash-beta-1-does-not-include-logrotate-file/61680/3 "2016-09-29T06:45:29Z")

</div>

@magnusbaeck

So should I just ignore the error for now?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 29, 2016, 7:08am UTC](https://discuss.elastic.co/t/logstash-beta-1-does-not-include-logrotate-file/61680/4 "2016-09-29T07:08:38Z")

</div>

It's not an error. You don't need any logrotate configuration in Logstash 5.

---

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [September 29, 2016, 7:30am UTC](https://discuss.elastic.co/t/logstash-beta-1-does-not-include-logrotate-file/61680/5 "2016-09-29T07:30:25Z")

</div>

I meant by error message which appears during the package installation.

` **chmod: cannot access ‘/etc/logrotate.d/logstash’: No such file or directory** `

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [September 29, 2016, 7:33am UTC](https://discuss.elastic.co/t/logstash-beta-1-does-not-include-logrotate-file/61680/6 "2016-09-29T07:33:31Z")

</div>

Oh! _That's_ indeed a bug. Please report it at [https://github.com/elastic/logstash/issues/new](https://github.com/elastic/logstash/issues/new).

---

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [September 29, 2016, 7:34am UTC](https://discuss.elastic.co/t/logstash-beta-1-does-not-include-logrotate-file/61680/7 "2016-09-29T07:34:17Z")

</div>

@magnusbaeck

Ok. No problem . Thanks.

---

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [September 29, 2016, 7:37am UTC](https://discuss.elastic.co/t/logstash-beta-1-does-not-include-logrotate-file/61680/8 "2016-09-29T07:37:48Z")

</div>

Done.

> <https://github.com/elastic/logstash/issues/5979>

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:36am UTC](https://discuss.elastic.co/t/logstash-beta-1-does-not-include-logrotate-file/61680/9 "2017-07-06T04:36:30Z")

</div>

Closed on July 6, 2017, 4:36am UTC


