forked from elastic/integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcp.yml.hbs
43 lines (43 loc) · 904 Bytes
/
tcp.yml.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
host: "{{syslog_host}}:{{syslog_port}}"
tags:
{{#if preserve_original_event}}
- preserve_original_event
{{/if}}
{{#each tags as |tag i|}}
- {{tag}}
{{/each}}
{{#contains "forwarded" tags}}
publisher_pipeline.disable_host: true
{{/contains}}
{{#if internal_interfaces.length}}
processors:
{{else}}
{{#if external_interfaces.length}}
processors:
{{else}}
{{#if processors}}
processors:
{{/if}}
{{/if}}
{{/if}}
{{#if processors}}
{{processors}}
{{/if}}
{{#if internal_interfaces.length}}
- add_fields:
target: _temp
fields:
internal_interfaces:
{{#each internal_interfaces as |interface i|}}
- {{interface}}
{{/each}}
{{/if}}
{{#if external_interfaces.length}}
- add_fields:
target: _temp
fields:
external_interfaces:
{{#each external_interfaces as |interface i|}}
- {{interface}}
{{/each}}
{{/if}}