File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ Aside from `logstash.yml` we can manage Logstashs pipelines.
50
50
* * logstash_pipelines* : List of pipelines with optional URL to repo (see docs/pipelines.md for details)
51
51
* * logstash_global_ecs* : Set ECS compatibilty mode (default: none. Possible values: ` disabled ` or ` v1 ` )
52
52
* * logstash_elasticsearch_output* : Enable default pipeline to Elasticsearch (default: ` true ` )
53
+ * * logstash_ident* : Add a field identifying the node that processed an event (default: ` true ` )
54
+ * * logstash_ident_field_name* : Name of the identifying the instance (default: ` "[netways][instance]" ` )
53
55
* * logstash_beats_input* : Enable default pipeline with ` beats ` input (default: ` true ` )
54
56
* * logstash_beats_input_congestion* : Optional congestion threshold for the beats input pipeline
55
57
* * logstash_beats_tls* : Activate TLS for the beats input pipeline (default: none but ` true ` with full stack setup if not set)
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ logstash_logging_file: true
51
51
logstash_logging_slow_console : true
52
52
logstash_logging_slow_file : true
53
53
54
+ logstash_ident : true
55
+ logstash_ident_field_name : " [netways][instance]"
54
56
logstash_pipeline_identifier : true
55
57
logstash_pipeline_identifier_field_name : " [netways][pipeline]"
56
58
logstash_pipeline_identifier_defaults : false
Original file line number Diff line number Diff line change @@ -7,6 +7,16 @@ filter {
7
7
}
8
8
}
9
9
10
+ {% endif %}
11
+ {% if logstash_ident | bool %}
12
+ filter {
13
+ mutate {
14
+ add_field => {
15
+ "{{ logstash_ident_field_name }}" => "{{ ansible_hostname }}"
16
+ }
17
+ }
18
+ }
19
+
10
20
{% endif %}
11
21
output {
12
22
elasticsearch {
You can’t perform that action at this time.
0 commit comments