Commit 4b725a3f authored by Gurvinder Singh's avatar Gurvinder Singh

added support for logrotate and default file

parent 287759d5
...@@ -55,19 +55,8 @@ rpm deb: | build-all ...@@ -55,19 +55,8 @@ rpm deb: | build-all
build/bin/logstash-forwarder.sh=$(PREFIX)/bin/ \ build/bin/logstash-forwarder.sh=$(PREFIX)/bin/ \
logrouter_uninett.pem=/etc/ssl/certs/ \ logrouter_uninett.pem=/etc/ssl/certs/ \
logstash-forwarder.conf=/etc/logstashforwarder/config.json.example \ logstash-forwarder.conf=/etc/logstashforwarder/config.json.example \
logstash-forwarder.init=/etc/init.d/logstash-forwarder logstash-forwarder.default=/etc/default/logstash-forwarder \
logstash-forwarder.logrotate=/etc/logrotate.d/logstash-forwarder \
rpm32 deb32: PREFIX=/opt/logstash-forwarder
rpm32 deb32: | build-all
fpm -a i386 -s dir -t deb -n logstash-forwarder -v $(VERSION) \
--replaces lumberjack \
--exclude '*.a' --exclude 'lib/pkgconfig/zlib.pc' \
--description "a log shipping tool" \
--url "https://github.com/elasticsearch/logstash-forwarder" \
build/bin/logstash-forwarder=$(PREFIX)/bin/ \
build/bin/logstash-forwarder.sh=$(PREFIX)/bin/ \
logrouter_uninett.pem=/etc/ssl/certs/ \
logstash-forwarder.conf=/etc/logstashforwarder/config.json.example \
logstash-forwarder.init=/etc/init.d/logstash-forwarder logstash-forwarder.init=/etc/init.d/logstash-forwarder
# Vendor'd dependencies # Vendor'd dependencies
......
DAEMON_ARGS="-config /etc/logstashforwarder/config.json -spool-size 500 -log-to-syslog"
/var/log/logstash-forwarder.log
{
rotate 7
daily
missingok
delaycompress
compress
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment