Вопрос

Is Papertrail the only service of its class that allows you to react to a logged event via webhook?

A hosted logging solution is what i'm looking for like Splunk storm or Papertrail.

Это было полезно?

Решение

Logentries provides real-time POST notifications with HMAC authentication: https://logentries.com/doc/webhookalert/

Enables you to match a regular expression, set a minimal number of matches per hour/day and set maximal number of alerts per hour/day.

The format is (in docs):

{
"alert": {
    "name": "500 error" // Alert name
},
"host": {
    "name": "Web", // Host name
    "hostname": "web.example.com" // Host DNS name
},
"log": {
    "name": "access.log" // Log name
},
"event": Event, // Trigerring event
"context": [ // Events in context
    Event[]
]
}

Where Event is:

{
"t": 1346202355889, // Timestamp
"s": 40634540484, // Sequence
"m": "[26/Aug/2012:10:58:50 +0100] POST /api..." // Message
}

Другие советы

Splunk can do it using curl and their API. http://dev.splunk.com/view/saved-searches-and-alerting/SP-CAAADRK

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top