Gallop-stark opened a new issue #6876: URL: https://github.com/apache/skywalking/issues/6876
Please answer these questions before submitting your issue. - Why do you submit this issue? - [ ] Question or discussion - [ ] Bug - [ ] Requirement - [x] Feature or performance improvement ___ ### Requirement or improvement - Please describe your requirements or improvement suggestions. - About url level accesslog in mesh, if url has parameter, the raw urls number in accesslog will be huge. If recognize the regex rule of raw url, we can push regex rule to mesh sidecar filter. Here is a way to recognize maybe the regex rules of raw urls. For example, Raw urls in accesslog: /user/1,/user/2,/user/3,/user/4,/index we can get this: 1. "/user" of first position (split by '/') is in 4 url ; 2. "/1" of second position is in 1 url ; 3. "/2" of second position is in 1 url ; 4. "/3" of second position is in 1 url ; 5. "/4" of second position is in 1 url ; 6. "/index" of first position is in 1 url ; "/user" of first position is in 4 url and more than others,so we think "/user" of first position maybe some regex rule immutable part, others are not immutable part. Next: 1. /user/1, /user is immutable part,not change. /1 is not immutable part and use /[^/]+ to replace,so ^/user/[^/]+$ matched num = 1 ; 2. /user/2, ..., so ^/user/[^/]+$ matched num = 2 ; 3. /user/3, ..., so ^/user/[^/]+$ matched num = 3 ; 4. /user/4, ..., so ^/user/[^/]+$ matched num = 4 ; 5. /index , /index is not immutable part,use /[^/]+ to replace, so ^/[^/]+$ num = 1 ; Finally: we select the top num matched ^/user/[^/]+$ push to mesh sidecar filter; And repeat above action; Like mostly learning algorithms,it is not ensure 100% right and need more data to be more right, but in our company product enviroment ,it can cover 95% case ,and 5% case need user manually set and adjust.I don't know if it helps in skywalking mesh url mitrics. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
