Skip to content

Instantly share code, notes, and snippets.

@oguzhancoskun
Last active March 9, 2017 05:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oguzhancoskun/ff32fee48cb5dbeff278766e820ec715 to your computer and use it in GitHub Desktop.
Save oguzhancoskun/ff32fee48cb5dbeff278766e820ec715 to your computer and use it in GitHub Desktop.
Graylog Apache Extractor
{
"extractors": [
{
"condition_type": "none",
"condition_value": "",
"converters": [
{
"config": {},
"type": "numeric"
},
{
"config": {
"date_format": "DDD MMM dd hh:mm:ss yyyy"
},
"type": "date"
}
],
"cursor_strategy": "copy",
"extractor_config": {
"regex_value": "([a-zA-Z]{1,3}\\s[a-zA-Z]{1,3}\\s([0-9])[0-9]\\s[0-9]{2}:[0-9]{2}:[0-9]{2}\\s[0-9]{4})"
},
"extractor_type": "regex",
"order": 0,
"source_field": "message",
"target_field": "httpd_date",
"title": "httpd_date"
},
{
"condition_type": "none",
"condition_value": "",
"converters": [],
"cursor_strategy": "copy",
"extractor_config": {
"regex_value": "\\[.*\\]\\s(.*)"
},
"extractor_type": "regex",
"order": 0,
"source_field": "message",
"target_field": "httpd_message",
"title": "httpd_message"
}
],
"version": "0.20.2"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment