Merge branch 'modify-sudo-log-monitoring' of kazu634/itamae into master
This commit is contained in:
commit
65fd0bb831
|
@ -32,7 +32,7 @@ scrape_configs:
|
|||
selector: '{job="sudo"} |~ "/bin/sh"'
|
||||
stages:
|
||||
- drop:
|
||||
expression: (CRON|sshd|session)
|
||||
expression: (CRON|sshd|session|securetty)
|
||||
- regex:
|
||||
expression: '^(?P<timestamp>\w+ +[0-9]+ [0-9]+:[0-9]+:[0-9]+) [^ ]+ sudo: +(?P<user>[^ ]+) : TTY=(?P<tty>[^ ]+) ; PWD=(?P<pwd>[^ ]+) ; USER=(?P<foo>[^ ]+) ; COMMAND=(?P<cmd>.+)$'
|
||||
|
||||
|
@ -59,7 +59,7 @@ scrape_configs:
|
|||
selector: '{job="sudo"} !~ "/bin/sh"'
|
||||
stages:
|
||||
- drop:
|
||||
expression: (CRON|sshd|session)
|
||||
expression: (CRON|sshd|session|securetty)
|
||||
- regex:
|
||||
expression: '^(?P<timestamp>\w+ +[0-9]+ [0-9]+:[0-9]+:[0-9]+) [^ ]+ sudo: +(?P<user>[^ ]+) : TTY=(?P<tty>[^ ]+) ; PWD=(?P<pwd>[^ ]+) ; USER=(?P<foo>[^ ]+) ; COMMAND=(?P<cmd>.+)$'
|
||||
|
||||
|
|
Loading…
Reference in New Issue