tail_from_sentinel | Reads a file , but only returns content once a marker

 by   jstirk Ruby Version: Current License: No License

kandi X-RAY | tail_from_sentinel Summary

kandi X-RAY | tail_from_sentinel Summary

tail_from_sentinel is a Ruby library. tail_from_sentinel has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Parses a file, looking for a sentinel line that satisfies a block, and returns all lines from there until the end of the file (including the sentinel itself). This can be handy when you are looking for information in a log file only after a certain condition (eg. a date) has been met. You can either use it on it's own, or subclass it to build your own custom tail-like classes. Standalone: File.open('/var/log/messages', 'r') do |file| tfs=TailFromSentinel::Base.new(file) { |line| line =~ /Dec 20 11:2\d+/ } end tfs.data # => [ 'Dec 20 11:20:00 ...', 'Dec 20 11:21:00 ...', ... ]. Subclassed: class TailMyFile < TailFromSentinel::Base DATA_ROOT="/path/to/data/". t=TailMyFile.new('production.log') t.data # => [ 'Started GET "/pattern ...", " Processing ... ", ... ].
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              tail_from_sentinel has a low active ecosystem.
              It has 1 star(s) with 0 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              tail_from_sentinel has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of tail_from_sentinel is current.

            kandi-Quality Quality

              tail_from_sentinel has no bugs reported.

            kandi-Security Security

              tail_from_sentinel has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              tail_from_sentinel does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              tail_from_sentinel releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of tail_from_sentinel
            Get all kandi verified functions for this library.

            tail_from_sentinel Key Features

            No Key Features are available at this moment for tail_from_sentinel.

            tail_from_sentinel Examples and Code Snippets

            No Code Snippets are available at this moment for tail_from_sentinel.

            Community Discussions

            No Community Discussions are available at this moment for tail_from_sentinel.Refer to stack overflow page for discussions.

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

            Vulnerabilities

            No vulnerabilities reported

            Install tail_from_sentinel

            You can download it from GitHub.
            On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            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/jstirk/tail_from_sentinel.git

          • CLI

            gh repo clone jstirk/tail_from_sentinel

          • sshUrl

            git@github.com:jstirk/tail_from_sentinel.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