Hi Team,
How to exclude the string from regerx pattern ?
Can any one please suggest me here ?
gb_nsms_*_ABC_file.log
Here i want to exclude “EM” in the place of star ( “*” ) …thanks in Advance…
Hi Team,
How to exclude the string from regerx pattern ?
Can any one please suggest me here ?
gb_nsms_*_ABC_file.log
Here i want to exclude “EM” in the place of star ( “*” ) …thanks in Advance…
This looks like a glob aka wildcard pattern and not a regular expression. If you are using Telegraf you might be able to use the [!]
pattern to get close, but not exactly, this meaning:
# skips anything starting with E
gb_nsms_[!E]*_ABC_file.log
# skips anything either starting with E or ending with M
gb_nsms_[!E][!M]_ABC_file.log
Hi Daniel…
Thanks for your reply… Dont we have option to ignore whole word i.e “EM” instaed of starting letter with “E” ?
Unfortunately, I can’t think of a way to do this with globs.