diff --git a/plugins/cisco_asa.yaml b/plugins/cisco_asa.yaml new file mode 100644 index 00000000..5cb18bbe --- /dev/null +++ b/plugins/cisco_asa.yaml @@ -0,0 +1,30 @@ +# Plugin Info +version: 0.0.1 +title: Cisco ASA +description: Log parser for Cisco ASA +parameters: + listen_address: + label: Listen Address + description: A syslog address of the form `:` + type: string + default: ":5140" + +# Set Defaults +{{$listen_address := default ":5140" .listen_address}} + +# Pipeline Template +pipeline: + - id: cisco_input + type: tcp_input + listen_address: {{ $listen_address }} + labels: + log_type: cisco_asa + output: cisco_parser + + - id: cisco_parser + type: regex_parser + regex: '^(?P[\d\w\s:\-]+?)(?: asa )?: %(?P[\w\d-]+):\s(?P.*)' + timestamp: + parse_from: timestamp + layout: '%b %d %Y %H:%M:%S' + output: {{.output}}