support/snoopies.json
{
"snoopers" : {
"AppServer" : {
"snoop" : "/Users/snoopers/log/app_server.log",
"dir" : {
"path" : "/Users/snoopers/log",
"glob" : "*.log"
},
"sniffers" : [
{
"comment" : "Bad status from app server",
"regexp" : "Non OK Status",
"lines" : {
"before" : 2,
"after" : 2
},
"notify" : {
"email" : {
"to" : "somebody@somemail.com",
"from" : "snooper@noxaos.com"
},
"http" : {
"url" : "http://localhost:3000/snoopers/snooped"
},
"stomp" : {
"queue" : "/queue/snooped",
"headers" : {
"persistent" : true
}
}
}
},
{
"comment" : "Failed Bulk load failure!",
"regexp" : "Failed to bulk load",
"lines" : {
"before" : 2,
"after" : 2
},
"notify" :
{
"email" : {
"to" : [
"someone@somemail.com",
"somebody@somemail.com"
],
"from" : "snooper@noxaos.com"
}
}
}
]
},
"AppServer2" : {
"snoop" : "/Users/snoopers/log/app_server.log",
"dir" : {
"path" : "/Users/snoopers/log",
"glob" : "*.log"
},
"sniffers" : [
{
"comment": "Bad status from app server",
"regexp": "Non OK Status",
"lines": {
"before": 2,
"after": 2
}
}
]
}
},
"notifiers" : {
"load" : {
"Notifier Identifier" : {
"file" : "/path/to/mynotifier",
"class" : "MyNotifierClassName",
"config" : {
"configParms" : "PassedAfterCreated"
}
}
},
"email" : {
"smtp-server" : "smtp.gmail.com",
"port" : 587,
"tls" : true,
"user" : "admin@foomail.com",
"password" : "",
"authentication" : "login"
},
"http" : {
"api-key" : "BR549",
"user" : "fred",
"password" : "flintstone"
},
"https" : {
"api-key" : "BR549",
"user" : "fred",
"password" : "flintstone"
},
"stomp" : {
"host" : "localhost",
"port" : "61613",
"login" : "fred",
"passcode" : "flintstone",
"headers" : {
"accept-version" : "1.1",
"host" : "vhost"
}
}
}
}