tobi / clarity Goto Github PK
View Code? Open in Web Editor NEWWeb interface for the grep and tail -f unix tools. Useful for real-time log analysis. Remotely related to splunk
Web interface for the grep and tail -f unix tools. Useful for real-time log analysis. Remotely related to splunk
Could only install it from http://gemcutter.org
Might want to update the docs or else turn it into a gem with GitHub...
If I submit the search form by pressing enter instead of clicking the button I am sent to a blank page.
To fix this, you could do
$("#" + search_form).bind("submit", function (event) {
event.preventDefault();
Search.submit();
});
Or something like that instead of putting the onclick handler inline on the button.
The command being run is:
Running: sh -c 'grep -e => test.log'
Running grep -e => test.log in terminal has the same efffect, however grep -e '=>' test.log returns '=>'
Hi everybody,
I can't understand why the auto-scrolling doesn't work. Tried with Firefox and also Explorer (!?) but it doesn't work, not in Search nor in Tail mode. Any suggestions?
Thank you, Stefano.
Hi,
This is prasad. I try to install clarity on my ubuntu 12.04, but it will show no command found. How to resolve this problem.
It sounds like clarity has another dependency: Rails
Could you please document the version of Rails you are using?
Thank you
There are a few things hardcoded in that seem to prevent log files with extensions other than .log. I changed line 7 of /usr/lib/ruby/gems/1.8/gems/clarity-0.9.2/lib/clarity/commands/tail_command_builder.rb and set the default value of log_files in /usr/lib/ruby/gems/1.8/gems/clarity-0.9.2/lib/clarity/cli.rb to "['/']" which makes things work here for our web logs where are formatted like access_log.1 . These changes probably make sense for a lot of situations, and in cases where .log does matter, it could be specified in the command line when starting clarity. Thanks!
I am pretty naive to clarity. For trial I installed clarity at my mac. And when I try to run clarity /var/log --include '/*'
It gives me error like
/Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:47:in +': can't convert String into Array (TypeError) from /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:47:in
execute'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1260:in call' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1260:in
parse_in_order'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1247:in catch' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1247:in
parse_in_order'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1241:in order!' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1332:in
permute!'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1353:in parse!' from /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:76:in
execute'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1717:in options' from /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:20:in
execute'
from /Users/ritu/.gem/ruby/1.8/gems/clarity-0.9.8/bin/clarity:10
from /usr/bin/clarity:19:in `load'
from /usr/bin/clarity:19
Can somebody help me in this?
user@ubuntu:~$ sudo gem install clarity PostInstall.txt Successfully installed clarity-0.9.8 1 gem installed Installing ri documentation for clarity-0.9.8... Installing RDoc documentation for clarity-0.9.8... Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc Could not find main page README.rdoc user@ubuntu:~$ clarity --username=admin --password=secret --port=8989 /var/log clarity: command not found user@ubuntu:~$
Can you please help to resolve this?
Thank yiou.
ERROR 03.12.2009 22:51:32 foo
is being showed as
51:32 foo
I'd love to be able to do something like this:
./clarity -p 234 /var/log/tomcat6 /var/log/foo /var/log/bar
I know this can be done with the config file, why not with the cli? ;-)
Hi,
Not a issue, but couldn't find any better place to address.
I liked the idea.
But can I install it on Ubuntu?
The screenshot in the readme is offline
Howdy,
Clarity is vulnerable to a simple directory traversal vulnerability that allows access to any file on the server that's readable by the user clarity is running as - take for example /etc/passwd which is a+r.
This occurs because of how Clarity forwards any unknown request in to public_file
. The public path and the request path are then concatenated, but there's no sanity check to make sure that the file being accessed actually lives inside Clarity::Public
.
The exploit is reproducible simply byas simple as curl http://localhost:8989/../../../../../../../../../etc/passwd
I've got a fix in my fork of coosh's fork over at chrisboulton/clarity@c35751e - I just can't submit a pull request without including the rest of coosh's changes.
Props of course should be given to Yendor picking up the vulnerability in one of our security scans.
Sorry for the inconvenience, I can not install clarity. Any idea how solve it?
vagrant@quantal64:$ sudo clarity /var/log --include '/*'
/var/lib/gems/1.9.1/gems/clarity-0.9.8/lib/clarity/cli.rb:47:in block (2 levels) in execute': can't convert String into Array (TypeError) from /usr/lib/ruby/1.9.1/optparse.rb:1360:in
call'
from /usr/lib/ruby/1.9.1/optparse.rb:1360:in block in parse_in_order' from /usr/lib/ruby/1.9.1/optparse.rb:1347:in
catch'
from /usr/lib/ruby/1.9.1/optparse.rb:1347:in parse_in_order' from /usr/lib/ruby/1.9.1/optparse.rb:1341:in
order!'
from /usr/lib/ruby/1.9.1/optparse.rb:1432:in permute!' from /usr/lib/ruby/1.9.1/optparse.rb:1453:in
parse!'
from /var/lib/gems/1.9.1/gems/clarity-0.9.8/lib/clarity/cli.rb:76:in block in execute' from /usr/lib/ruby/1.9.1/optparse.rb:1865:in
options'
from /var/lib/gems/1.9.1/gems/clarity-0.9.8/lib/clarity/cli.rb:20:in execute' from /var/lib/gems/1.9.1/gems/clarity-0.9.8/bin/clarity:10:in
<top (required)>'
from /usr/local/bin/clarity:23:in load' from /usr/local/bin/clarity:23:in
Thanks!
i just installed clarity (gem install clarity json eventmachine eventmachine_httpserver) but the command clarity is not avaliable in my shell.
should i add something to $PATH variable?
i'm using debian 6 / ruby 1.8.7
after installing clarity i was trying run it
by
i got following error
/usr/lib/ruby/gems/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:47:in +': can't convert String into Array (TypeError) from /usr/lib/ruby/gems/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:47:in
execute'
from /usr/lib/ruby/1.8/optparse.rb:1267:in call' from /usr/lib/ruby/1.8/optparse.rb:1267:in
parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1254:in catch' from /usr/lib/ruby/1.8/optparse.rb:1254:in
parse_in_order'
from /usr/lib/ruby/1.8/optparse.rb:1248:in order!' from /usr/lib/ruby/1.8/optparse.rb:1339:in
permute!'
from /usr/lib/ruby/1.8/optparse.rb:1360:in parse!' from /usr/lib/ruby/gems/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:76:in
execute'
from /usr/lib/ruby/1.8/optparse.rb:1724:in options' from /usr/lib/ruby/gems/1.8/gems/clarity-0.9.8/lib/clarity/cli.rb:20:in
execute'
from /usr/lib/ruby/gems/1.8/gems/clarity-0.9.8/bin/clarity:10
from /usr/bin/clarity:19:in `load'
from /usr/bin/clarity:19
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.