I have a log with below as a source field from which I need to extract the field Gateway name (My_Gateway_NONPROD).
Any help in how to extract it?.
source= /apps/geneos/gateway/logs/My_Gateway_NONPROD.log
hi @pbsuju
Give this a try : | rex field=source ".*\/(?<gateway_name>[^\.]*)" | table gateway_name
All the best!
hi @pbsuju
Give this a try : | rex field=source ".*\/(?<gateway_name>[^\.]*)" | table gateway_name
All the best!
Great thanks. It worked
Great! Thanks for accepting 🙂