Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

sherlock-log

3.2.1 • Public • Published

Sherlock

You see, but you do not observe - Sherlock Holmes

============

Simple tool to visualize reports from logs using Node.js and D3

Running tests:

vagrant up vagrant ssh sudo passwd root

set passowrd: 5tgbnhy6

DSL:

Callbacks:

investigate('#Sherlock SAAS QPS simple investigation', function(){
    ask(questions, function(answers){
        var options = {
            servers: answers.servers,
            commands: answers.commands
        }
        verify(options, function(conclusion){
 
        });
    });
});
 
investigate('#Sherlock SAAS QPS enhanced investigation', function(){
    ask(questions, function(answers){
        var questionOptions={
            type: "checkbox",
            name: "servers",
            message: "Select servers",
            choices : function() {
                return answwers.servers;
            }
        }
        var complementaryQuestion=new Question(questionOptions);
        ask(complementaryQuestion, function(){
            var options = {
            servers: answers.servers,
            commands: answers.commands
            }
            verify(options, function(conclusion){
 
            });
        });
    });
});

Events:

case('#Sherlock SAAS QPS simple investigation with events', function(){
    var question = new Question(questions);
    question.on('answered', function(answers){
        var options = {
            servers: answers.servers,
            commands: answers.commands
        }
 
        var investigation = new Investigation(options);
        investigation.on('conclusion', function(conclusion){
 
        });
        investigation.investigate();
    });
    question.ask();
});

Questions

Keywords

none

Install

npm i sherlock-log

DownloadsWeekly Downloads

5

Version

3.2.1

License

ISC

Unpacked Size

112 kB

Total Files

81

Last publish

Collaborators

  • avatar