Giter VIP home page Giter VIP logo

beaver's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @jhollinger
  • ๐Ÿ‘€ Iโ€™m interested in Ruby, Elixr, Rust, and inventing niche, esoteric languages.
  • ๐ŸŒฑ Iโ€™m currently learning Rust, language design.
  • ๐Ÿ“ซ @jordanhollinger on Twitter

beaver's People

Contributors

bwarminski avatar jhollinger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

beaver's Issues

:path is flawed

In hit a :path option of '/foo/bar/' should match '/foo/bar/?bla=stuff'. Currently, the only way to get that to match is to use %r{/foo/bar/}.

Docs request - when should I use hit, and when should I use dam?

Thanks vm for this project which seems like it will really help me with log analysis. I'm trying to get to grips with what hit and dam do. I can see that they both create a Dam object and add it into the list of defined dams. I am trying to work out, why there are 2 methods here, and when should I use 1, and when should I use the other?

I tried the following script, and it seems that hit is able to match each request for some given filter conditions.

Beaver.stream(Rails.configuration.paths['log']) do
  hit :posts, :method => :post do |thing|
    p thing
  end
end
# calls back with a `Beaver::Parsers::Rails` for each post request which makes perfect sense

From the examples, it seems like dam is used to 'batch up' the previously matched requests, maybe at the end, once all the requests have been parsed? Is this right? Would another name for this method be all_hits(:posts) returning an array (with additional methods) of matched hits?

Any guidance would be appreciated.

Rails 6+

Does this not parse the logs of Rails 6+? I'm not seeing any output.

undefined method 'action' for Beaver

Hi there!

I ran the command today

cat log/* | beaver --action=create

, but got an error:

/home/deployer/.rvm/gems/ruby-2.1.0/gems/beaver-1.4.4/lib/beaver/dam.rb:105:in ===': undefined method action' for #<Beaver::Parsers::HTTP:0x000000019e7d88> (NoMethodError)

Is this an isolated case, or is there no such option anymore? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.