Fixed some usage output to group sources to logserver or node

This commit is contained in:
Tristan Ancelet 2024-05-18 13:34:18 -05:00
parent 25bb829ccb
commit bbd879a792

View File

@ -67,10 +67,12 @@ usage () {
$( basename $0 ) [-s|--source <source>] [-m|--mode <mode>] [--services] [-l|--last-nth-days <int>] [-H|--hostname <hostname>] [-d|--debug] [-o|--output-file <filename>] $( basename $0 ) [-s|--source <source>] [-m|--mode <mode>] [--services] [-l|--last-nth-days <int>] [-H|--hostname <hostname>] [-d|--debug] [-o|--output-file <filename>]
Sources: Sources:
Logserver:
log : When used on the log-server for a customer environment (references the hosts messages file /var/log/hosts/<hostname>/YYYY/MM/DD/messages*) log : When used on the log-server for a customer environment (references the hosts messages file /var/log/hosts/<hostname>/YYYY/MM/DD/messages*)
ilog : Log, but it will let you chose which files you will be checking against. (interactive) ilog : Log, but it will let you chose which files you will be checking against. (interactive)
journal (default) : When used on a node (referenced a nodes journal for finding errors) Global:
file : search through a local file file : search through a local file
journal (default) : When used on a node (referenced a nodes journal for finding errors)
Search Modes Search Modes
cluster : Searching for errors that are cluster related (matches regex: ${SEARCH_MODES[CLUSTER]}) cluster : Searching for errors that are cluster related (matches regex: ${SEARCH_MODES[CLUSTER]})