thiagomdiniz / zabbix

Codes for use with Zabbix.
8 stars 4 forks source link

alternate regex pattern #4

Open emertron01 opened 3 years ago

emertron01 commented 3 years ago

if your log looks like this:

CLIENT_LIST,admin,186.138.12.35:52423,10.20.0.6,,31602,163987,Fri Jul 16 01:10:26 2021,1626408626,UNDEF,1,1

so your regex should looks like this: ((CLIENT_LIST,(.,){2}(.,){4}.*[\r\n])+)

thanks for your job