Skip to content

Commit

Permalink
fix: use type:tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
hazcod committed May 26, 2020
1 parent 6cc352a commit 4fb188c
Show file tree
Hide file tree
Showing 14 changed files with 702 additions and 37 deletions.
681 changes: 674 additions & 7 deletions x-pack/filebeat/filebeat.reference.yml

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ protocol.udp:
{{ if ne .pipeline "" }}
pipeline: "{{.pipeline}}"
{{ end }}

{{ else if eq .input "tls" }}
type: syslog
protocol.tcp:
host: "{{.syslog_host}}:{{.syslog_port}}"
ssl:
enabled: true
certificate_authorities: ["{{.cafile}}"]
certificate: "{{.certfile}}"
key: "{{.keyfile}}"
client_authentication: "required"
{{ if ne .pipeline "" }}
pipeline: "{{.pipeline}}"
{{ end }}
type: tcp
host: "{{.syslog_host}}:{{.syslog_port}}"
ssl:
enabled: true
certificate_authorities: ["{{.cafile}}"]
certificate: "{{.certfile}}"
key: "{{.keyfile}}"
client_authentication: "required"
{{ if ne .pipeline "" }}
pipeline: "{{.pipeline}}"
{{ end }}

{{ else if eq .input "file" }}

type: log
Expand Down
File renamed without changes.
25 changes: 13 additions & 12 deletions x-pack/filebeat/module/checkpoint/firewall/config/firewall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@ protocol.udp:
{{ if ne .pipeline "" }}
pipeline: "{{.pipeline}}"
{{ end }}

{{ else if eq .input "tls" }}
type: syslog
protocol.tcp:
host: "{{.syslog_host}}:{{.syslog_port}}"
ssl:
enabled: true
certificate_authorities: ["{{.cafile}}"]
certificate: "{{.certfile}}"
key: "{{.keyfile}}"
client_authentication: "full"
{{ if ne .pipeline "" }}
pipeline: "{{.pipeline}}"
{{ end }}
type: tcp
host: "{{.syslog_host}}:{{.syslog_port}}"
ssl:
enabled: true
certificate_authorities: ["{{.cafile}}"]
certificate: "{{.certfile}}"
key: "{{.keyfile}}"
client_authentication: "required"
{{ if ne .pipeline "" }}
pipeline: "{{.pipeline}}"
{{ end }}

{{ else if eq .input "file" }}

type: log
Expand Down
8 changes: 2 additions & 6 deletions x-pack/filebeat/modules.d/checkpoint.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
firewall:
enabled: true

# Set which input to use between syslog (default), file or tls
# if you set tls, also set cafile, certfile and keyfile to their respective file paths
# Set which input to use between syslog (default) or file.
#var.input: syslog

# The interface to listen to UDP based syslog traffic. Defaults to
Expand All @@ -19,7 +18,4 @@
# Set the log level from 1 (alerts only) to 7 (include all messages).
# Messages with a log level higher than the specified will be dropped.
# See https://www.cisco.com/c/en/us/td/docs/security/asa/syslog/b_syslog/syslogs-sev-level.html
#var.log_level: 7

# If using pipelines, specify the pipeline name
#var.pipeline: mypipeline
#var.log_level: 7

0 comments on commit 4fb188c

Please sign in to comment.