mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Add statsd/apache example
This commit is contained in:
parent
966e87a48b
commit
a49f35c2f5
1 changed files with 25 additions and 0 deletions
25
etc/examples/apache-logs-to-statsd.conf
Normal file
25
etc/examples/apache-logs-to-statsd.conf
Normal file
|
@ -0,0 +1,25 @@
|
|||
input {
|
||||
file {
|
||||
path => "/var/log/apache2/access_log"
|
||||
type => "apache-access"
|
||||
}
|
||||
tcp {
|
||||
type => "apache-access"
|
||||
port => 3333
|
||||
}
|
||||
}
|
||||
|
||||
filter {
|
||||
grok {
|
||||
type => "apache-access"
|
||||
pattern => "%{COMBINEDAPACHELOG}"
|
||||
}
|
||||
}
|
||||
|
||||
output {
|
||||
statsd {
|
||||
increment => [ "apache.response.%{response}" ]
|
||||
count => [ "apache.bytes", "%{bytes}" ]
|
||||
}
|
||||
#stdout { debug => true }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue