Skip to content

Instantly share code, notes, and snippets.

@GuillaumeDievart
Last active September 3, 2015 03:05
Show Gist options
  • Save GuillaumeDievart/3d039b5afc665149a407 to your computer and use it in GitHub Desktop.
Save GuillaumeDievart/3d039b5afc665149a407 to your computer and use it in GitHub Desktop.
input {
file {
type => "magento-perf"
path => "/opt/hosting/elk-magento/www/var/log/elk-magento.log"
}
}
filter {
if [type] == "magento-perf" {
grok {
match => [ "message", "%{TIMESTAMP_ISO8601:date} %{GREEDYDATA:log_level} \([0-9]+\): %{DATA:area} \| %{DATA:action} \| %{DATA:request_time:float} \| %{INT:memory:int}" ]
}
}
}
output {
elasticsearch {
protocol => "http"
host => "192.168.56.200"
port => 9200
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment