Skip to content

Instantly share code, notes, and snippets.

@ph
Created January 25, 2016 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ph/9f76ccbda387d4597c7a to your computer and use it in GitHub Desktop.
Save ph/9f76ccbda387d4597c7a to your computer and use it in GitHub Desktop.
filebeat:
spool_size: 4096
prospectors:
-
paths:
- /tmp/multi*
input_type: log
document_type: diffusion
registry_file: /tmp/test_registry
output:
logstash:
hosts: ["localhost:5555"]
worker: 4
bulk_max_size: 4096
loadbalance: true
shipper:
logging:
level: debug
files:
rotateeverybytes: 10485760
keepfiles: 3
input {
beats {
port => 5555
}
}
filter {
metrics {
meter => "events"
add_tag => "metric"
}
}
output {
if "metric" in [tags] {
stdout {
codec => line {
format => "rate: %{[events][rate_1m]}"
}
}
}
}
input {
lumberjack {
port => 6782
ssl_certificate => "/Users/ph/es/logstash-config/certificates/logstash-forwarder.crt"
ssl_key => "/Users/ph/es/logstash-config/certificates/logstash-forwarder.key"
}
}
filter {
metrics {
meter => "events"
add_tag => "metric"
}
}
output {
if "metric" in [tags] {
stdout {
codec => line {
format => "rate: %{[events][rate_1m]}"
}
}
}
}
{
"network": {
"servers": [ "localhost:6782" ],
# "ssl ca": "/tmp/lumberjack.crt",
"ssl ca": "/Users/ph/es/logstash-config/certificates/logstash-forwarder.crt",
"timeout": 15
},
"files": [
{
"paths": [
"/tmp/multi*log"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment