Skip to content

Commit

Permalink
elastic#26118: Add other inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
legoguy1000 authored and leehinman committed Dec 2, 2021
1 parent 8896fd3 commit 2e5ab42
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 20 deletions.
19 changes: 12 additions & 7 deletions x-pack/filebeat/module/cisco/asa/config/input.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{{ if eq .input "syslog" }}

type: udp
udp:
host: "{{.syslog_host}}:{{.syslog_port}}"

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

type: log
paths:
Expand All @@ -13,6 +7,17 @@ paths:
{{ end }}
exclude_files: [".gz$"]

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

type: udp
udp:
host: "{{.syslog_host}}:{{.syslog_port}}"

{{ else }}

type: {{.input}}
host: "{{.syslog_host}}:{{.syslog_port}}"

{{ end }}

tags: {{.tags | tojson}}
Expand Down
17 changes: 11 additions & 6 deletions x-pack/filebeat/module/cisco/ftd/config/input.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{{ if eq .input "syslog" }}

type: udp
host: "{{.syslog_host}}:{{.syslog_port}}"

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

type: log
paths:
Expand All @@ -12,6 +7,16 @@ paths:
{{ end }}
exclude_files: [".gz$"]

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

type: udp
host: "{{.syslog_host}}:{{.syslog_port}}"

{{ else }}

type: {{.input}}
host: "{{.syslog_host}}:{{.syslog_port}}"

{{ end }}

tags: {{.tags | tojson}}
Expand Down
19 changes: 12 additions & 7 deletions x-pack/filebeat/module/cisco/ios/config/input.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{{ if eq .input "syslog" }}

type: syslog
protocol.udp:
host: "{{.syslog_host}}:{{.syslog_port}}"

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

type: log
paths:
Expand All @@ -13,6 +7,17 @@ paths:
{{ end }}
exclude_files: [".gz$"]

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

type: syslog
protocol.udp:
host: "{{.syslog_host}}:{{.syslog_port}}"

{{ else }}

type: {{.input}}
host: "{{.syslog_host}}:{{.syslog_port}}"

{{ end }}

tags: {{.tags | tojson}}
Expand Down

0 comments on commit 2e5ab42

Please sign in to comment.