debian/0000755000000000000000000000000012263152126007166 5ustar debian/logster.logrotate0000644000000000000000000000020012255263614012565 0ustar /var/log/logster/*.log { rotate 12 copytruncate daily compress missingok notifempty delaycompress } debian/changelog0000644000000000000000000000023512255263614011046 0ustar logster (0.0.1-1) unstable; urgency=low * Initial release (Closes: #728980) -- Andreas Rütten Mon, 16 Dec 2013 10:44:48 +0100 debian/compat0000644000000000000000000000000212255263614010372 0ustar 9 debian/logster.dirs0000644000000000000000000000002012255263614011526 0ustar var/log/logster debian/watch0000644000000000000000000000011112255263614010216 0ustar version=3 http://githubredir.debian.net/github/etsy/logster/v(.*).tar.gz debian/control0000644000000000000000000000260712263151216010575 0ustar Source: logster Section: utils Priority: extra Maintainer: Debian Graphite Group Uploaders: Andreas Rütten Build-Depends: debhelper (>= 9), dh-python, python-all (>= 2.6.6-3~), python-setuptools Standards-Version: 3.9.5 Homepage: https://github.com/etsy/logster Vcs-Git: git://anonscm.debian.org/pkg-graphite/packages/logster.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-graphite/packages/logster.git;a=summary Package: logster Architecture: all Depends: logtail, python-pkg-resources, ${misc:Depends}, ${python:Depends} Recommends: logrotate Provides: ${python:Provides} Description: Generate metrics from logfiles for Graphite and Ganglia Logster is a utility for reading log files and generating metrics in Graphite or Ganglia or Amazon CloudWatch. It is ideal for visualizing trends of events that are occurring in your application/system/error logs. For example, you might use logster to graph the number of occurrences of HTTP response code that appears in your web server logs. . Logster maintains a cursor, via logtail, on each log file that it reads so that each successive execution only inspects new log entries. In other words, a 1 minute crontab entry for logster would allow you to generate near real-time trends in Graphite or Ganglia or Amazon CloudWatch for anything you want to measure from your logs. debian/logster.postrm0000644000000000000000000000050312255263614012117 0ustar #!/bin/sh # postrm script for logster # # see: dh_installdeb(1) set -e case "$1" in purge) rm -rf /var/log/logster ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/clean0000644000000000000000000000001512255263614010175 0ustar *.egg-info/* debian/copyright0000644000000000000000000000533712263151216011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: logster Source: http://github.com/etsy/logster Files: * Copyright: 2013 Etsy,Inc. License: GPL-3+ Files: bin/logster Copyright: 2011 Etsy,Inc. 2008 Linden Research, Inc. License: GPL-3+ Files: logster/logster_helper.py Copyright: 2011 Etsy,Inc. License: GPL-3+ Files: logster/parsers/Log4Logster.py Copyright: 2011 Etsy,Inc. 2011 Mike Babineau , EA2D License: GPL-3+ Files: logster/parsers/MetricLogster.py Copyright: 2011 Etsy,Inc. 2011 Mark Crossfield 2011 Jeff Blaine License: GPL-3+ Files: logster/parsers/PostfixLogster.py Copyright: 2011 Bronto Software, Inc. License: GPL-3+ Files: logster/parsers/SampleLogster.py Copyright: 2011 Etsy, Inc. License: GPL-3+ Files: logster/parsers/SquidLogster.py Copyright: 2011 Etsy, Inc. License: GPL-3+ Files: logster/parsers/stats_helper.py Copyright: 2011 Mark Crossfield License: GPL-3+ Files: logster/parsers/logster_helper.py Copyright: 2011 Etsy, Inc. License: GPL-3+ Files: debian/* Copyright: 2013 Andreas Rütten License: GPL-2+ License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". debian/patches/0000755000000000000000000000000012263151216010614 5ustar debian/patches/series0000644000000000000000000000007112263151216012027 0ustar adding-logster-parsers-to-be-packaged-with-the-egg.patch debian/patches/adding-logster-parsers-to-be-packaged-with-the-egg.patch0000644000000000000000000000120312263151216023241 0ustar From: Daniel Aquino Date: Wed, 31 Oct 2012 16:35:37 -0400 Subject: adding logster/parsers to be packaged with the egg Origin: upstream, https://github.com/etsy/logster/commit/57de61a3d9fe3f21a9456984fb7fb39b8603b660 Bug: https://github.com/etsy/logster/pull/25 --- a/setup.py +++ b/setup.py @@ -12,7 +12,10 @@ description='Parse log files, generate metrics for Graphite and Ganglia', author='Etsy', url='https://github.com/etsy/logster', - packages=['logster'], + packages=[ + 'logster', + 'logster/parsers' + ], zip_safe=False, scripts=[ 'bin/logster' debian/logster.10000644000000000000000000000400712255263614010736 0ustar .TH LOGSTER "1" "December 2013" "logster 0.0.1" .SH NAME logster \- generate metrics from logfiles .SH SYNOPSIS .B logster [\fIoptions\fR] \fIparser logfile\fR .SH DESCRIPTION Tail a log file and filter each line to generate metrics that can be sent to common monitoring packages. .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-\-logtail\fR=\fILOGTAIL\fR Specify location of logtail. Default \fI/usr/sbin/logtail2\fP .TP \fB\-p\fR METRIC_PREFIX, \fB\-\-metric\-prefix\fR=\fIMETRIC_PREFIX\fR Add prefix to all published metrics. This is for people that may multiple instances of same service on same host. .TP \fB\-x\fR METRIC_SUFFIX, \fB\-\-metric\-suffix\fR=\fIMETRIC_SUFFIX\fR Add suffix to all published metrics. This is for people that may add suffix at the end of their metrics. .TP \fB\-\-parser\-help\fR Print usage and options for the selected parser .TP \fB\-\-parser\-options\fR=\fIPARSER_OPTIONS\fR Options to pass to the logster parser such as "\-o VALUE \fB\-\-option2\fR VALUE". These are parser\-specific and passed directly to the parser. .TP \fB\-\-gmetric\-options\fR=\fIGMETRIC_OPTIONS\fR Options to pass to gmetric such as "\-d 180 \fB\-c\fR \fI/etc/ganglia/gmond\fP.conf" (default). These are passed directly to gmetric. .TP \fB\-\-graphite\-host\fR=\fIGRAPHITE_HOST\fR Hostname and port for Graphite collector, e.g. graphite.example.com:2003 .TP \fB\-s\fR STATE_DIR, \fB\-\-state\-dir\fR=\fISTATE_DIR\fR Where to store the logtail state file. Default location \fI/var/run\fP .TP \fB\-o\fR OUTPUT, \fB\-\-output\fR=\fIOUTPUT\fR Where to send metrics (can specify multiple times). Choices are 'graphite', 'ganglia', or 'stdout'. .TP \fB\-d\fR, \fB\-\-dry\-run\fR Parse the log file but send stats to standard output. .TP \fB\-D\fR, \fB\-\-debug\fR Provide more verbose logging for debugging. .SH "SEE ALSO" .BR logtail (1) .SH AUTHOR logster was written by Etsy, Inc. .PP This manual page was written by Andreas Rütten , for the Debian project (and may be used by others). debian/logster.manpages0000644000000000000000000000002112255263614012361 0ustar debian/logster.1 debian/rules0000755000000000000000000000026312263151216010246 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export PYBUILD_NAME=logster %: dh $@ --with python2 --buildsystem=pybuild debian/source/0000755000000000000000000000000012255263614010474 5ustar debian/source/format0000644000000000000000000000001412255263614011702 0ustar 3.0 (quilt) debian/logster.docs0000644000000000000000000000001212255263614011516 0ustar README.md