Filebeat+Logstash: Lowered flush size by significant amount to get logs into ES much quicker
This commit is contained in:
parent
cdaa7b1038
commit
9c0d5c1fd4
@ -5,23 +5,25 @@ metadata:
|
|||||||
namespace: app-notifications
|
namespace: app-notifications
|
||||||
data:
|
data:
|
||||||
filebeat.yml: |
|
filebeat.yml: |
|
||||||
filebeat.inputs:
|
filebeat.autodiscover:
|
||||||
- type: filestream
|
providers:
|
||||||
id: kubernetes-containers
|
- type: kubernetes
|
||||||
paths:
|
node: ${NODE_NAME}
|
||||||
- /var/log/containers/*_app-notifications_*.log
|
hints.enabled: false
|
||||||
prospector:
|
templates:
|
||||||
scanner:
|
- condition:
|
||||||
fingerprint.enabled: true
|
equals:
|
||||||
fingerprint.offset: 0
|
kubernetes.namespace: "app-notifications"
|
||||||
fingerprint.length: 512
|
config:
|
||||||
parsers:
|
- type: container
|
||||||
- container: ~
|
paths:
|
||||||
|
- /var/log/containers/*_app-notifications_*.log
|
||||||
|
stream: stdout
|
||||||
|
fingerprint.enabled: false
|
||||||
|
|
||||||
processors:
|
processors:
|
||||||
- add_kubernetes_metadata:
|
- add_kubernetes_metadata:
|
||||||
in_cluster: true
|
in_cluster: true
|
||||||
host: ${NODE_NAME}
|
|
||||||
- drop_event:
|
- drop_event:
|
||||||
when:
|
when:
|
||||||
not:
|
not:
|
||||||
@ -37,5 +39,14 @@ data:
|
|||||||
|
|
||||||
logging.level: info
|
logging.level: info
|
||||||
|
|
||||||
|
queue.mem:
|
||||||
|
events: 4096
|
||||||
|
flush.min_events: 5
|
||||||
|
flush.timeout: 5s
|
||||||
|
|
||||||
output.logstash:
|
output.logstash:
|
||||||
hosts: ["logstash.app-notifications.svc.cluster.local:5044"]
|
hosts: ["logstash.app-notifications.svc.cluster.local:5044"]
|
||||||
|
bulk_max_size: 10
|
||||||
|
worker: 1
|
||||||
|
compression_level: 3
|
||||||
|
timeout: 30
|
||||||
Loading…
x
Reference in New Issue
Block a user