Summary: Journalbeat is a log shipper from systemd/journald to Logstash/Elasticsearch Name: journalbeat Version: 5.6.9 Release: qg Group: Tools License: Apache v2.0 URL: https://github.com/mheese/journalbeat Source0: %{name}-%{version}.tar.gz BuildRequires: /bin/bash Requires: systemd %description Journalbeat is a log shipper from systemd/journald to Logstash/Elasticsearch %define debug_package %{nil} %prep %setup -q %pre if ! grep journalbeat /etc/passwd > /dev/null; then /usr/sbin/useradd -M -g systemd-journal -s /bin/bash journalbeat; fi %preun if [ $1 -eq 0 ] ; then systemctl disable journalbeat.service systemctl stop journalbeat.service >/dev/null 2>&1 /usr/sbin/userdel journalbeat fi %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr/bin mkdir -p $RPM_BUILD_ROOT/etc/journalbeat/conf.d mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system touch $RPM_BUILD_ROOT/etc/journalbeat/journalbeat-cursor-state cp journalbeat $RPM_BUILD_ROOT/usr/bin cp journalbeat.service $RPM_BUILD_ROOT/usr/lib/systemd/system %clean rm -rf $RPM_BUILD_ROOT %files %attr(644,journalbeat,systemd-journal) /etc/journalbeat/journalbeat-cursor-state %attr(755,journalbeat,systemd-journal) /etc/journalbeat/conf.d %attr(755,journalbeat,systemd-journal) /usr/bin/journalbeat %attr(0644,root,root) /usr/lib/systemd/system/journalbeat.service %post systemctl daemon-reload >/dev/null 2>&1 %changelog * Wed Aug 15 2018 Oleksii Martyniuk - 5.6.9 - built new version of journalbeat: v5.6.9 * Wed Jan 04 2017 Roman Kruglicky - 1.1.1-qg - Update journalbeat binary file, updated libbeat to 5.0.0-alpha4 * Fri Jun 03 2016 Roman Kruglicky - 1.0-qg - Initial build