Skip to content

Instantly share code, notes, and snippets.

@rfay
Created July 23, 2013 18:44
Show Gist options
  • Save rfay/6065023 to your computer and use it in GitHub Desktop.
Save rfay/6065023 to your computer and use it in GitHub Desktop.
grok {
tags => [ "Drupal" ]
match => [ "@message", "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_host} *drupal: *https?://%{HOSTNAME:drupal_vhost}\|(?<drupal_full_message>.*)" ]
}
csv {
tags => [ "Drupal" ]
separator => "|"
source => "@fields.drupal_full_message"
columns => [ "drupal_timestamp", "drupal_type", "drupal_client_ip", "drupal_request_uri", "drupal_referrer", "drupal_severity", "drupal_message" ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment