Hi, I have a regular expression in a GROK filter, where the first filter is working however the next 5 filters are not working. Could someone kindly look at the filter and possibly point out where I am going wrong?
grok {
match => ["CELL_ID_LONG", "(?<CELL_ID>\d{5})$"]
match => ["OTHER_NUMBER", "^(?<OTHER_NUMBER_5>\d{5})"]
match => ["OTHER_NUMBER", "^(?<OTHER_NUMBER_4>\d{4})"]
match => ["OTHER_NUMBER", "^(?<OTHER_NUMBER_3>\d{3})"]
match => ["OTHER_NUMBER", "^(?<OTHER_NUMBER_2>\d{2})"]
match => ["OTHER_NUMBER", "^(?<OTHER_NUMBER_1>\d{1})"]
}
with the first match I am extracting the last 5 digits of a long number, this one is working without problems:
match => ["CELL_ID_LONG", "(?<CELL_ID>\d{5})$"]
Then the next 5 once, I am trying to extract the 5 to 1 numbers of another long number, this is not working:
match => ["OTHER_NUMBER", "^(?<OTHER_NUMBER_5>\d{5})"]
match => ["OTHER_NUMBER", "^(?<OTHER_NUMBER_4>\d{4})"]
match => ["OTHER_NUMBER", "^(?<OTHER_NUMBER_3>\d{3})"]
match => ["OTHER_NUMBER", "^(?<OTHER_NUMBER_2>\d{2})"]
match => ["OTHER_NUMBER", "^(?<OTHER_NUMBER_1>\d{1})"]
The input number for the OTHER_NUMBER match looks something like this:
277263514659
Any assistance with this challenge would be truly appreciated.