regular expression issue in linux
I am trying to Monitor log file in linux machine. I want to match for certain words example below
1- locations-processed.geofence.dlq 100 ----> i don't want this log entry
2- locations-processed.geofence 100 ------> I want this entry only
I want to check the number more than 10
I try below
<*>locations-processed.geofence <<#.count> -gt 10><*>
but unfortunate this expression work only if entry 2 before entry 1 other than this it is not matched so I want to match for entry 2 exact words and neglect entry 1
is there anyidea
Re: regular expression issue in linux (URGENT please)
Dear Microfocus experts,
Is there any idea please kindly support I want to match for below only
and not match for below
Re: regular expression issue in linux
May be the whitespace character has an issue. so try this
<*>locations-processed.geofence<_><<#.count> -gt 100><*>
enable local logging in the policy and check if the lines matches.
ussually i dont like to use -gt in logfile polices as in former times this caused me a lot of trouble.
An alternative is to use a structured metric logfile policy (use Agent 12.11 or 12.04 or get hotfixes) and use this olicy to write the numbers into CODA. then use a tresold policy to create a message when >100
also there are issues with Agent versions12.05 and 12.06 and also 12.10. so try with 12.11 or ask MF Support for hotfixes for your agent version and try with them again.