mirror of https://github.com/tstack/lnav
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
255 B
Plaintext
11 lines
255 B
Plaintext
4 years ago
|
#
|
||
|
# @synopsis: tag-ssh-msgs
|
||
|
# @description: Tag interesting SSH log messages
|
||
|
#
|
||
|
|
||
|
;UPDATE all_logs
|
||
|
SET log_tags = json_concat(log_tags, '#ssh.invalid-user')
|
||
|
WHERE log_text LIKE '%Invalid user from%'
|
||
|
|
||
|
;SELECT 'Tagged ' || changes() || ' messages';
|