Skip to content

Instantly share code, notes, and snippets.

@belotn
Created January 22, 2015 17:00
Show Gist options
  • Save belotn/59fc49e3143dcb214d37 to your computer and use it in GitHub Desktop.
Save belotn/59fc49e3143dcb214d37 to your computer and use it in GitHub Desktop.
Graylog2 KMS activation extrator
{
"extractors": [
{
"condition_type": "string",
"condition_value": "activation request",
"converters": [],
"cursor_strategy": "copy",
"extractor_config": {
"regex_value": ".*0x[0-9a-f]+,\\d+,([^,]+),[0-9a-f\\-]+,[^,]+,\\d,\\d,\\d+,[0-9a-f\\-]+.*"
},
"extractor_type": "regex",
"order": 0,
"source_field": "full_message",
"target_field": "TargetHostName",
"title": "kms.activation.hostname"
},
{
"condition_type": "string",
"condition_value": "activation request",
"converters": [],
"cursor_strategy": "copy",
"extractor_config": {
"regex_value": ".*0x[0-9a-f]+,(\\d+).*"
},
"extractor_type": "regex",
"order": 0,
"source_field": "full_message",
"target_field": "RequieredActivation",
"title": "kms.activation.reqCount"
},
{
"condition_type": "string",
"condition_value": "activation request",
"converters": [
{
"config": {
"date_format": "yyyy/MM/DD HH:mm"
},
"type": "date"
}
],
"cursor_strategy": "copy",
"extractor_config": {
"regex_value": ".*0x[0-9a-f]+,\\d+,[^,]+,[0-9a-f\\-]+,([^,]+),(\\d),(\\d),(\\d+),([0-9a-f\\-]+).*"
},
"extractor_type": "regex",
"order": 0,
"source_field": "full_message",
"target_field": "ClientTimeStamp",
"title": "kms.extraction.timestamp"
},
{
"condition_type": "string",
"condition_value": "activation request",
"converters": [],
"cursor_strategy": "copy",
"extractor_config": {
"regex_value": ".*0x[0-9a-f]+,\\d+,[^,]+,[0-9a-f\\-]+,[^,]+,\\d,(\\d),(\\d+),([0-9a-f\\-]+).*"
},
"extractor_type": "regex",
"order": 0,
"source_field": "full_message",
"target_field": "LicenseType",
"title": "kms.activation.licensetype"
},
{
"condition_type": "string",
"condition_value": "activation request",
"converters": [],
"cursor_strategy": "copy",
"extractor_config": {
"regex_value": ".*0x[0-9a-f]+,\\d+,[^,]+,[0-9a-f\\-]+,[^,]+,\\d,\\d,(\\d+),([0-9a-f\\-]+).*"
},
"extractor_type": "regex",
"order": 0,
"source_field": "full_message",
"target_field": "LicenseTTL",
"title": "kms.activation.ttl"
}
],
"version": "0.92.3"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment