Don't treat IDs as uniquely special in CRM114
The openstack logs a full of various IDs and UUIDs but they are not uniquely special when it comes to filtering them. Instead replace each ID with a token making CRM114's life much easier. Change-Id: Id9b430c0d31889b89e4e0c1790a2405d73f501b5
This commit is contained in:
parent
716ae11cfc
commit
99e530479a
@ -57,6 +57,39 @@ learn [:_nl:] <osb unique microgroom> (:*:prefix:/FAILURE.css)
|
||||
match (:timestamp:) /^[-.0-9 |:]+/
|
||||
alter (:timestamp:) //
|
||||
}
|
||||
{
|
||||
# Don't treat UUIDs as uniquely special.
|
||||
match (:uuidtoken:) /[[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{12}/
|
||||
alter (:uuidtoken:) /UUIDTOKEN/
|
||||
{
|
||||
match (:uuidtoken:) <fromnext> /[[:xdigit:]]{8}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{4}-[[:xdigit:]]{12}/
|
||||
alter (:uuidtoken:) /UUIDTOKEN/
|
||||
# Loop to replace all TOKENS in line
|
||||
liaf
|
||||
}
|
||||
}
|
||||
{
|
||||
# Don't treat IDs as uniquely special.
|
||||
match (:idtoken:) /[[:xdigit:]]{32,40}/
|
||||
alter (:idtoken:) /IDTOKEN/
|
||||
{
|
||||
match (:idtoken:) <fromnext> /[[:xdigit:]]{32,40}/
|
||||
alter (:idtoken:) /IDTOKEN/
|
||||
# Loop to replace all TOKENS in line
|
||||
liaf
|
||||
}
|
||||
}
|
||||
{
|
||||
# Don't treat IDs as uniquely special.
|
||||
match (:numtoken:) /-[[:digit:]]{7,}/
|
||||
alter (:numtoken:) /-NUMTOKEN/
|
||||
{
|
||||
match (:numtoken:) <fromnext> /-[[:digit:]]{7,}/
|
||||
alter (:numtoken:) /-NUMTOKEN/
|
||||
# Loop to replace all TOKENS in line
|
||||
liaf
|
||||
}
|
||||
}
|
||||
# Train on the line
|
||||
learn <osb unique microgroom> (:*:prefix:/:*:target:.css)
|
||||
# Classify the line to see if it looks more like a SUCCESS or FAILURE line
|
||||
|
Loading…
Reference in New Issue
Block a user