Hi,
I have following pattern in my logs and i have need to sum up the numeric values. I want to sum up how many products persisted by evaluating following log statment?
2020-03-25 02:48:29.673 INFO 25916 [nio-8080-exec-8] p.m.R.XXXXXImpl : Total number of manual products persisted - 50
What would be the right way to sum up persisted product? In above example 50 products got persisted. So considering following logs, my requirement is to get sum of 150 product persisted.
2020-03-25 02:18:29.673 INFO 25916 [nio-8080-exec-8] p.m.R.XXXXXImpl : Total number of manual products persisted - 50
2020-03-25 02:28:29.673 INFO 25916 [nio-8080-exec-8] p.m.R.XXXXXImpl : Total number of manual products persisted - 40
2020-03-25 02:38:29.673 INFO 25916 [nio-8080-exec-8] p.m.R.XXXXXImpl : Total number of manual products persisted - 60
Do need to add any field with eval expression? if yes how to achieve it?
regards,
Pawan Modi
... View more