I have example line from pentaho logs
2021-02-26 15:01:21.523 INFO <get.Data - 1000.select> [/public/server/path.kjb /public/server/backup/job.path.kjb /public/get.Base.ktr] Finished processing (I=9730, O=0, R=0, W=9730, U=0, E=0)
I try to sum W through time so I run logQL querry:
sum by (writes) ({job=“integrator”} | regexp `.*W=(?P<writes>.*),` | unwrap writes [5m])
As I understand logic behind is:
- Chose stream job = integrator
- Extract field from the stream *W=[field content] .And save content in Writes label.
- Replace log line with value from Writes as result
- Define aggregate period as [5m]
- sum this values along above period.
How ever I got unexpected unwrap error. This is fairly hard to find examples of regexp with aggregate functions run from explorer or as panel querry.
Can any one point me to good tutorial or point what I’m doing wrong.