Package Details: logstash 5.4.0-1

Git Clone URL: https://aur.archlinux.org/logstash.git (read-only)
Package Base: logstash
Description: A tool for managing events and logs
Upstream URL: https://www.elastic.co/products/logstash
Licenses: Apache License
Submitter: r0man
Maintainer: mtorromeo
Last Packager: mtorromeo
Votes: 25
Popularity: 0.464586
First Submitted: 2014-01-17 14:58
Last Updated: 2017-05-06 11:18

Latest Comments

g00dx commented on 2017-01-23 00:49

The current systemd service would not start for me. Here is one I created that works. I've made it from https://github.com/elastic/logstash and modified it for this package.

http://pastebin.com/i4MbsKWT

waukalak commented on 2016-12-06 14:14

the home directory for user "logstash" (it is /) is wrong. It should be /var/lib/logstash.

xproger commented on 2016-11-21 11:16

I have faced another problem after installation. There isn't exist default logstash.yml file in the package or I have missed something, anyway, you have to create logstash.yml in /etc/logstash and put into it "config.path: path_to_config" to start service.

mtorromeo commented on 2016-11-21 10:03

I updated the pkgsums

xproger commented on 2016-11-21 09:25

I have the same problem with files validation. Are there exist any temporary workarounds or somethings?

travisghansen commented on 2016-11-20 17:11

==> Validating source files with sha256sums...
logstash-5.0.1.tar.gz ... Passed
logstash.service ... Passed
logstash@.service ... Passed
user.conf ... Passed
bundle.config ... FAILED
==> ERROR: One or more files did not pass the validity check!
==> ERROR: Makepkg was unable to build logstash.

petrucci4prez commented on 2016-11-18 03:16

This still needs some work; essentially the default install directory needs to be /usr/share and not /opt. See following diff:

diff logstash/bundle.config logstash-new/bundle.config
2c2
< BUNDLE_PATH: /opt/logstash/vendor/bundle
---
> BUNDLE_PATH: /usr/share/logstash/vendor/bundle
4c4
< BUNDLE_GEMFILE: /opt/logstash/Gemfile
---
> BUNDLE_GEMFILE: /usr/share/logstash/Gemfile
diff logstash/logstash.install logstash-new/logstash.install
3c3
< chown -R logstash:logstash opt/logstash var/lib/logstash
---
> chown -R logstash:logstash var/lib/logstash var/log/logstash
8c8
< chown -R logstash:logstash opt/logstash
---
> chown -R logstash:logstash var/lib/logstash var/log/logstash
diff logstash/PKGBUILD logstash-new/PKGBUILD
22c22
< 'd19e7bd73fb602419602296b113047df06688a9c15f5b3436602cc41afa1c486')
---
> 'fe05315345e4489458c3eecac43726800109c1e390e74a14584096f6c041fee1')
26c26,32
< rm -f bin/logstash.bat
---
> rm -f bin/*.bat
>
> sed -re 's;#\s*(path\.config:).*$;\1 /etc/logstash/conf.d;' \
> -e '0,/#\s*(path\.data:).*$/s;;\1 /var/lib/logstash;' \
> -e 's;#\s*(path\.logs:).*$;\1 /var/log/logstash;' \
> -e 's;#\s*(path\.plugins:).*$;\1 [/usr/share/logstash/plugins];' \
> -i config/logstash.yml
39,40c45,48
< install -dm755 "$pkgdir"/opt
< cp -a logstash-$pkgver "$pkgdir"/opt/logstash
---
> install -dm755 "$pkgdir"/usr/share/logstash/plugins
> install -dm755 "$pkgdir"/var/lib/logstash
> install -dm755 "$pkgdir"/var/log/logstash
> install -dm755 "$pkgdir"/etc/logstash/conf.d
44,49c52,58
< install -Dm644 user.conf "$pkgdir"/usr/lib/sysusers.d/logstash.conf
<
< install -Dm644 bundle.config "$pkgdir"/opt/logstash/.bundle/config
<
< install -dm755 "$pkgdir"/var/lib/logstash
< install -dm755 "$pkgdir"/etc/logstash/conf.d
---
> install -Dm644 user.conf "$pkgdir"/usr/lib/sysusers.d/logstash.conf
> install -Dm644 bundle.config "$pkgdir"/usr/share/logstash/.bundle/config
>
> cd "$srcdir"/$pkgname-$pkgver
> cp -R bin lib logstash-* vendor "$pkgdir"/usr/share/logstash
> cp Gemfile* "$pkgdir"/usr/share/logstash
> cp config/{jvm.options,log4j2.properties,logstash.yml} "$pkgdir"/etc/logstash

cgirard commented on 2016-11-10 11:00

I suggest to read https://www.elastic.co/guide/en/logstash/current/breaking-changes.html and update the PKGBUILD properly. It will probably need a little more work than just updating pkgver and checksums...

leothrix commented on 2016-11-08 03:34

Service unit is broken in 5.x:

ERROR: Unknown command 'agent'

Eriner commented on 2016-11-06 21:14

Thanks for the valid patch @BruceR. Ping @mtorromeo to update.

All comments