logster | Parse log files , generate metrics for Graphite and Ganglia

 by   etsy Python Version: Current License: Non-SPDX

kandi X-RAY | logster Summary

kandi X-RAY | logster Summary

logster is a Python library typically used in Logging applications. logster has no bugs, it has no vulnerabilities, it has build file available and it has high support. However logster has a Non-SPDX License. You can download it from GitHub.

Logster is a utility for reading log files and generating metrics to configurable outputs. 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 a tailer, 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 the configured output for anything you want to measure from your logs. This tool is made up of a framework script, logster, and parsing classes that are written to accommodate your specific log format. Sample parsers are included in this distribution. The parser classes essentially read a log file line by line, apply a regular expression to extract useful data from the lines you are interested in, and then aggregate that data into metrics that will be submitted to the configured output. The sample parsers should give you some idea of how to get started writing your own. A list of available parsers can be found on the Parsers page. Graphite, Ganglia, Amazon CloudWatch, Nagios, StatsD and stdout outputs are provided, and Logster also supports the use of third-party output classes. A list of available output classes can be found on the Outputs page.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              logster has a highly active ecosystem.
              It has 1967 star(s) with 285 fork(s). There are 109 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 5 open issues and 31 have been closed. On average issues are closed in 206 days. There are 5 open pull requests and 0 closed requests.
              OutlinedDot
              It has a negative sentiment in the developer community.
              The latest version of logster is current.

            kandi-Quality Quality

              logster has 0 bugs and 0 code smells.

            kandi-Security Security

              logster has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              logster code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              logster has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              logster releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              logster saves you 438 person hours of effort in developing the same functionality from scratch.
              It has 1036 lines of code, 111 functions and 30 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed logster and discovered the below as its top functions. This is intended to give you an instant insight into logster implemented functionality, and help decide if they suit your requirements.
            • Submit metrics to CloudWatch
            • Generate a signed URL
            • Sets the url params
            • Get instance id
            • Upload data to CloudWatch
            • Submit Graphite Graphite Graphite metrics
            • Get metric name
            • Find the median of a list of numbers
            • Find a single value in a list of numbers
            • Create the statefile
            • Return the read lines
            • Parse a line of logster
            • Flattens an object
            • Submit a list of metrics
            • Takes a list of metrics and prints them
            • Submit the given metrics to the UDP server
            • Submit metrics to NSCA server
            Get all kandi verified functions for this library.

            logster Key Features

            No Key Features are available at this moment for logster.

            logster Examples and Code Snippets

            default
            Pythondot img1Lines of Code : 19dot img1no licencesLicense : No License
            copy iconCopy
            Usage: graylogtail [options] logfile
            
            Tail a log file and filter each line to generate log lines that can be sent to
            gralog2.
            
            Options:
              -h, --help            show this help message and exit
              -s STATE_DIR, --state-dir=STATE_DIR
                                  

            Community Discussions

            Trending Discussions on logster

            QUESTION

            How to fix: Mongo::Error::OperationFailure
            Asked 2021-Sep-02 at 04:13

            The production log on my Ruby on Rails app, has some of the following error types:

            ...

            ANSWER

            Answered 2021-Sep-02 at 04:13

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install logster

            Logster supports two methods for gathering data from a logfile:.
            By default, Logster uses the "logtail" utility that can be obtained from the logcheck package, either from a Debian package manager or from source: http://packages.debian.org/source/sid/logcheck RPMs for logcheck can be found here: http://rpmfind.net/linux/rpm2html/search.php?query=logcheck
            Optionally, Logster can use the "Pygtail" Python module instead of logtail. You can install Pygtail using pip $ pip install pygtail To use Pygtail, supply the --tailer=pygtail option on the Logster commandline.
            By default, Logster uses fcntl.flock.
            Optionally, Logster can use the "Portalocker" Python module instead of fcntl (which is not available on Windows). You can install Portalocker using pip, similar to Pygtail above. To use Portalocker, supply the --locker=portalocker option on the Logster commandline.

            Support

            If you have questions, you can find us on IRC in the #codeascraft channel on Freenode.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/etsy/logster.git

          • CLI

            gh repo clone etsy/logster

          • sshUrl

            git@github.com:etsy/logster.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link