-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from observIQ/cisco-asa
Added cisco asa
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 `<ip>:<port>` | ||
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<timestamp>[\d\w\s:\-]+?)(?: asa )?: %(?P<message_id>[\w\d-]+):\s(?P<message>.*)' | ||
timestamp: | ||
parse_from: timestamp | ||
layout: '%b %d %Y %H:%M:%S' | ||
output: {{.output}} |