Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.