Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add color scheme cisco_asa #29

Merged
merged 4 commits into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions multitail.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,62 @@ cs_re_s:magenta:\:("\w*")
cs_re_s:magenta:\:(\w*)
cs_re_s:magenta:\:(".*")

# Cisco IOS and IOS-XE
colorscheme:cisco_ios
# IP address and port
cs_re:yellow,,bold:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}
cs_re_s:yellow:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\(([0-9]*?)\)
cs_re_s:yellow:localport\: ([0-9]*?)
# interfaces
cs_re:magenta:\s(\w?+Ethernet|GigE|Fa|Gi|Te|Twe|Fo|Fi|Hu|TH)
cs_re_s:magenta,,bold:(Ethernet|GigE|Fa|Gi|Te|Twe|Fo|Fi|Hu|TH)([0-9]+/[0-9]+(/[0-9]+|))
cs_re:green,,bold:\b(up|on)\b
# User
cs_re_s:magenta,,bold:User (\w+?)
cs_re_s:magenta,,bold:user: (\w+?)
# log levels
cs_re:black,red:%\S*-0-\S*
cs_re:black,red:%\S*-1-\S*
cs_re:red:%\S*-2-\S*
cs_re:red:%\S*-3-\S*
cs_re:yellow:%\S*-4-\S*
cs_re:yellow:%\S*-5-\S*
cs_re:green:%\S*-6-\S*
cs_re:black,white:%\S*-7-\S*
# access lists
cs_re_s:,,bold: list ([0-9]+)
cs_re_s:blue,,bold: list [0-9]+ denied ([a-z0-9]*+).
cs_re_s:blue,,bold: list [0-9]+ permitted ([a-z0-9]*+).
cs_re:green,,bold:\bpermitted\b
cs_re:red,,bold:\bdenied\b
# misc
cs_re:red,,bold:\b(down|off)\b
cs_re_s:,,bold:[Pp]ower\ [Ss]upply\ ([0-9])
cs_re:red,,bold:\bfaulty\b
cs_re:red,,bold:error
cs_re:red,,bold:high alarm
cs_re:yellow,,bold:low alarm

# Cisco ASA
# This and is mainly for VPN logs.
# The colorscheme cisco_ios should be used after this one.
colorscheme:cisco_asa
# User
cs_re_s:magenta,,bold:User <(\w+?)>
cs_re_s:magenta,,bold:Username: (\w+?)
cs_re_s:magenta,,bold:User=(\w+?)
cs_re_s:magenta,,bold:Username = (\w+?)
cs_re_s:magenta,,bold:LOCAL\\(\w+?)
# GroupPolicy
cs_re_s:blue,,bold: Group <(\S+?)>
cs_re_s:blue,,bold: Group = (\S+?)
cs_re_s:blue,,bold:GroupPolicy <(\S+?)>
# TunnelGroup
cs_re_s:cyan,,bold:TunnelGroup <(\S+?)>
# Assigned IP
cs_re_s:green,,bold:IPv4 Address <([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})>
cs_re_s:green,,bold: Assigned IP=([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})

#
# colorscript: colorscripts are external scripts that decide what colors to use
# for input they receive the line that needs colors
Expand Down