Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0528dec

Browse files
authoredApr 17, 2024
Add beats timeout to Logstash (#322)
fixes #321 This will add an optional client timeout to the `beats` input the collection provides. See https://www.elastic.co/guide/en/logstash/7.17/plugins-inputs-beats.html#plugins-inputs-beats-client_inactivity_timeout for details.
1 parent ccd9052 commit 0528dec

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎docs/role-logstash.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Aside from `logstash.yml` we can manage Logstashs pipelines.
6060
* *logstash_ident_field_name*: Name of the identifying the instance (default: `"[netways][instance]"`)
6161
* *logstash_beats_input*: Enable default pipeline with `beats` input (default: `true`)
6262
* *logstash_beats_input_congestion*: Optional congestion threshold for the beats input pipeline
63+
* *logstash_beats_timeout*: Optional timeout for client connections. (Example: `60s`)
6364
* *logstash_beats_tls*: Activate TLS for the beats input pipeline (default: none but `true` with full stack setup if not set)
6465
* *logstash_tls_key_passphrase*: Passphrase for Logstash certificates (default: `LogstashChangeMe`)
6566
* *elasticstack_ca_pass*: Password for Elasticsearch CA (default: `PleaseChangeMe`)

‎roles/logstash/templates/beats-input.conf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ input {
99
ssl_certificate_authorities => ["{{ logstash_certs_dir }}/ca.crt"]
1010
ssl_peer_metadata => false
1111
{% endif %}
12+
{% if logstash_beats_timeout is defined %}
13+
client_inactivity_timeout => "{{ logstash_beats_timeout }}"
14+
{% endif %}
1215

1316
}
1417
}

0 commit comments

Comments
 (0)
Please sign in to comment.