didiercrunch / vulture

An advanced MongoDB data viewers in a web interface
MIT License
39 stars 2 forks source link

How do you run vulture in Linux? #1

Closed Maxwell101 closed 9 years ago

didiercrunch commented 9 years ago

Indeed, the binary file is a zip file that contains a directory. In the directory there is a binary called vulture. Consequently, you can cd into the directory and starts vulture from there by the command ./vulture.

In short, I'll assume you run on ubuntu just open a terminal and type...

$ cd Download
$ tar -xvzf vulture_1.2.1-vulture_linux_amd64.tar.gz
$ cd vulture_1.2.1-vulture_linux_amd64
$ ./vulture

Note that it is important that you starts vulture from where the binary is because the html/css/js files to create the we interface are in the static directory next to it.

cheers, didier

Maxwell101 commented 9 years ago

I have over 600,000 messages in my collection. Will vulture be able to run queries on a collection that large? For example, if I wanted to search for SEQNUM: 504444, how would I type that in the query box. I’ve done this: db.messages.findOne( { SEQNUM : "504444" } ) but that doesn’t work.

From: noreply@github.com [mailto:noreply@github.com] On Behalf Of didier amyot Sent: Tuesday, June 30, 2015 8:51 AM To: didiercrunch/vulture Cc: Rick Silacci Subject: Re: [vulture] How do you run vulture in Linux? (#1)

Indeed, the binary file is a zip file that contains a directory. In the directory there is a binary called vulture. Consequently, you can cd into the directory and starts vulture from there by the command ./vulture.

In short, I'll assume you run on ubuntu just open a terminal and type...

$ cd Download

$ tar -xvzf vulture_1.2.1-vulture_linux_amd64.tar.gz

$ cd vulture_1.2.1-vulture_linux_amd64

$ ./vulture

Note that it is important that you starts vulture from where the binary is because the html/css/js files to create the we interface are in the static directory next to it.

cheers, didier

— Reply to this email directly or view it on GitHubhttps://github.com/didiercrunch/vulture/issues/1#issuecomment-117235644.

didiercrunch commented 9 years ago

Yes that should work. I presumed that I have used vulture on much larger collections. But the results should be the same than what you would have with the default mongo client. In your collection ui there is a "search bar" where you can put your queries. It is a good place to understand.

In the specific case you flag, I presume your issue is that you should query for { SEQNUM : 504444 } instead of { SEQNUM : "504444" }.

cheers

Maxwell101 commented 9 years ago

That worked. Thanks for your help!

From: noreply@github.com [mailto:noreply@github.com] On Behalf Of didier amyot Sent: Tuesday, June 30, 2015 9:08 AM To: didiercrunch/vulture Cc: Rick Silacci Subject: Re: [vulture] How do you run vulture in Linux? (#1)

Yes that should work. I presumed that I have used vulture on much larger collections. But the results should be the same than what you would have with the default mongo client. In your collection ui there is a "search bar" where you can put your queries. It is a good place to understand.

In the specific case you flag, I presume your issue is that you should query for { SEQNUM : 504444 } instead of { SEQNUM : "504444" }.

cheers

— Reply to this email directly or view it on GitHubhttps://github.com/didiercrunch/vulture/issues/1#issuecomment-117240124.

didiercrunch commented 9 years ago

always happy to help!

Maxwell101 commented 9 years ago

Would you know how to search for just a keyword and not a string in a collection?

From: noreply@github.com [mailto:noreply@github.com] On Behalf Of didier amyot Sent: Tuesday, June 30, 2015 9:30 AM To: didiercrunch/vulture Cc: Rick Silacci Subject: Re: [vulture] How do you run vulture in Linux? (#1)

Closed #1https://github.com/didiercrunch/vulture/issues/1.

— Reply to this email directly or view it on GitHubhttps://github.com/didiercrunch/vulture/issues/1#event-344418128.

didiercrunch commented 9 years ago

haha.

I presume you have a collection called restaurants and each document represent a restaurant. Each restaurent contains a field named name. I presume you are looking for a restaurant which its name contains the word truie.

The most flexible but less effective way to search in text is via regular expression. In your case, searching for {name: /truie/gi} should work and out put a restaurent like chez ma grosse truie cherie.

The thing /truie/gi is called a javascript regular expression. It is made to search text in text. You can learn more about it here.

cheers

Maxwell101 commented 9 years ago

Actually, what I have is a collection named messages. The data comes from syslog-ng. I just need to search the “messages” collection for single keywords like “authenticate”, “failed”, “info” etcetera. I’m trying to search for just one keyword at a time. Right now I’m using the mViewer front end.

As of now the slash /pattern/ is not yet supported so I’ll need to use $regex with pattern within quotes syntax instead.

From: noreply@github.com [mailto:noreply@github.com] On Behalf Of didier amyot Sent: Tuesday, June 30, 2015 2:37 PM To: didiercrunch/vulture Cc: Rick Silacci Subject: Re: [vulture] How do you run vulture in Linux? (#1)

haha.

I presume you have a collection called restaurants and each document represent a restaurant. Each restaurent contains a field named name. I presume you are looking for a restaurant which its name contains the word truie.

The most flexible but less effective way to search in text is via regular expression. In your case, searching for {name: /truie/gi} should work and out put a restaurent like chez ma grosse truie cherie.

The thing /truie/gi is called a javascript regular expression. It is made to search text in text. You can learn more about it herehttp://www.w3schools.com/js/js_regexp.asp.

cheers

— Reply to this email directly or view it on GitHubhttps://github.com/didiercrunch/vulture/issues/1#issuecomment-117352577.