UNSOLVED

51lieal

updated

1 year ago

5

51lieal

1 Rookie

3 Posts

0

47

September 13th, 2023 14:10

Add Tag on Logging

So i've a script that would telnet and gather an output of 'show logging' and would be forwared with wa-cli to send message,

here's the setting of show logging :

Syslog logging: enabled
    Console logging: level debugging
    Monitor logging: level debugging
    Buffer logging: level debugging, 370 Messages Logged, Size (40960 bytes)
    Trap logging: level informational

how can i grep logging that match into EMERG, ALERT, CRIT and ERROR, so i can sent this 4 level log using wa-cli

Thanks for your time.