diff --git a/community/elasticsearch/APKBUILD b/community/elasticsearch/APKBUILD
index ad74cdd4dac5bc90e4952bbce34b27a35d763384..5b68c2cc2423b109a138149a152577375a067d26 100644
--- a/community/elasticsearch/APKBUILD
+++ b/community/elasticsearch/APKBUILD
@@ -17,6 +17,7 @@ pkggroups="elastico"
 source="https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$pkgver.tar.gz
 	$pkgname.initd
 	$pkgname.confd
+	$pkgname.logrotated
 	README.alpine
 	busybox-mktemp.patch
 	"
@@ -83,6 +84,9 @@ package() {
 	install -m644 -D "$srcdir"/$pkgname.confd \
 		"$pkgdir"/etc/conf.d/$pkgname
 
+	install -m644 -D "$srcdir"/$pkgname.logrotated \
+		"$pkgdir"/etc/logrotate.d/$pkgname
+
 	install -m644 -D "$srcdir"/README.alpine \
 		"$docdir"
 
@@ -113,5 +117,6 @@ _x_pack() {
 sha512sums="a023a6db5554dee6f10718dfa297aa06a735c7857542c2db80fa5c2b86ff4bf405bb8167578c5b60741ad05ed96a64b54bc71d128a0ff955468b0449588b053c  elasticsearch-6.4.1.tar.gz
 2477cb748ea08de0b0a4c931e68d875b1a363c029820dcc2144f0da9a5adb3ad2c17d8f2f7cc7bea85a16b61951a782e6eb48e3d5890505638e3245ec04e21d7  elasticsearch.initd
 2ab1baf1b5c8782f3f371ba221aadd3e841abc62175f0b1ddcfc68d711e2370465124e076f8cc2e549c25a1da9db8c90172b2f410bd6bbe4153f0e831620b6ba  elasticsearch.confd
+450879a8ab49c4debac3f8ed484918d48428cabf300b8196db785930a9bc56ce8a153b8d4c91655cfbe9ff50bb978b3c0f87eef99ed36213463f206b68d06590  elasticsearch.logrotated
 6de81485cdc059afef58382862e4155482463fde0b604aaa8dbe904c778b841467c4a383a5e54acd09e3436f1fb7be9923e001fb77bd3d7894e113a5e0f4036b  README.alpine
 1f9d13bbc42c04c523ef4e9ce734f919ec3d79748d78f288ed3dd725cf7c74e83d66d8b48fbc782b27b1a760096a647cb33773578071710542b19fda18ea0b84  busybox-mktemp.patch"
diff --git a/community/elasticsearch/elasticsearch.logrotated b/community/elasticsearch/elasticsearch.logrotated
new file mode 100644
index 0000000000000000000000000000000000000000..39eb6c15af96feab59657821f7cdde6d4f2dec39
--- /dev/null
+++ b/community/elasticsearch/elasticsearch.logrotated
@@ -0,0 +1,5 @@
+/var/log/elasticsearch/*.log {
+	compress
+	copytruncate
+	missingok
+}