[packages/logstash] add agent sample config
glen
glen at pld-linux.org
Sun Mar 17 20:08:54 CET 2013
commit c26bee0ab0c855bd680f0e5d4b4c4084f3829562
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Mar 17 20:35:20 2013 +0200
add agent sample config
logstash-agent.conf | 14 ++++++++++++++
logstash.spec | 6 ++++--
2 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/logstash.spec b/logstash.spec
index aaccb33..69b58f0 100644
--- a/logstash.spec
+++ b/logstash.spec
@@ -1,17 +1,17 @@
# TODO
-# - initscript
# - daemon user
# - logrotate
Summary: logstash is a tool for managing events and logs
Name: logstash
Version: 1.1.9
-Release: 0.2
+Release: 0.3
License: Apache v2.0
Group: Daemons
Source0: http://logstash.objects.dreamhost.com/release/%{name}-%{version}-monolithic.jar
# Source0-md5: 70addd3ccd37e796f473fe5647c31126
Source1: %{name}-agent.init
Source2: %{name}-agent.sysconfig
+Source3: %{name}-agent.conf
URL: http://www.logstash.net/
BuildRequires: rpmbuild(macros) >= 1.228
Requires(post,preun): /sbin/chkconfig
@@ -37,6 +37,7 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name}/patterns,%{_datadir}/%{name},/
cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_datadir}/%{name}/logstash-monolithic.jar
install -Dp %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/logstash-agent
install -Dp %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/logstash-agent
+cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/agent.conf
%clean
rm -rf $RPM_BUILD_ROOT
@@ -55,6 +56,7 @@ fi
%defattr(644,root,root,755)
%dir %attr(750,logstash,logstash) %{_sysconfdir}/%{name}
%dir %attr(750,logstash,logstash) %{_sysconfdir}/%{name}/patterns
+%config(noreplace) %verify(not md5 mtime size) %attr(640,logstash,logstash) %{_sysconfdir}/%{name}/agent.conf
%config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) /etc/sysconfig/logstash-agent
%attr(754,root,root) /etc/rc.d/init.d/logstash-agent
%dir %{_datadir}/%{name}
diff --git a/logstash-agent.conf b/logstash-agent.conf
new file mode 100644
index 0000000..1013728
--- /dev/null
+++ b/logstash-agent.conf
@@ -0,0 +1,14 @@
+input {
+ tcp {
+ host => "127.0.0.1"
+ mode => "server"
+ port => "6111"
+ type => "test"
+ }
+}
+
+output {
+ file {
+ path => "/var/log/logstash/test.log"
+ }
+}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/logstash.git/commitdiff/de9700ecf585b7d29b73f451c13689b4810ce675
More information about the pld-cvs-commit
mailing list