cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Who Me Too'd this topic

Pipe a command and using match regular expressions

L0 Member

Dear experts!

I'm trying to compile a match which matches the following regexp: (debug|monitor).(global|level|pcap|detail\.enable) but it seems like it does not support capturing groups. I've searched for a manual for the match command but struck out. 

 

The end game here is to use it to filter show system state to capture lines containing:

  • debug.global
  • debug.level
  • debug.pcap
  • monitor.detail.enable

Looks like capture lists is supported, ie. show system state | match debug.[glp] but capturing groups is what I need.

 

Does anyone here have a solution or tip?

 

Kind regards,

Patrik

Who Me Too'd this topic