Skip to content

Instantly share code, notes, and snippets.

@sirhopcount
Forked from Synchro/gist:5917252
Created August 26, 2014 09:28
Show Gist options
  • Save sirhopcount/7032a8369b8fbc8b36c5 to your computer and use it in GitHub Desktop.
Save sirhopcount/7032a8369b8fbc8b36c5 to your computer and use it in GitHub Desktop.
grep {
type => "syslog"
match => [ "syslog_program", "drupal" ]
add_tag => "Drupal"
drop => false
}
grok {
type => "syslog"
tags => [ "Drupal" ]
match => [ "@message", "^https?://%{HOSTNAME:drupal_vhost}\|%{NUMBER:drupal_timestamp}\|(?<drupal_action>[^\|]*)\|%{IP:drupal_ip}\|(?<drupal_request_uri>[^\|]*)\|(?<drupal_referer>[^\|]*)\|(?<drupal_uid>[^\|]*)\|(?<drupal_link>[^\|]*)\|(?<drupal_message>.*)" ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment