ExceptionsCategory
This Logstash filter sends an html request for a json document. It then looks up the @Exception attached to the event and tries to match that to a category from the json document. If it fails to do so, it looks up the Title attached to the event and tries the same thing with the Title.
If neither of those attributes are attached to the event, or if neither of them are present in the json document, it attached a None category to the event.
Usage:
filter {
exceptionscategory {
category_url => "url/to/json"
}
}
Where category_url is a required parameter, pointing to the url of the json document.
The json document must be structured as follows:
{
"Exceptions": {
"BadException": "Severe",
"GoodException": "Warning"
}
}