LogQL Group dynamic request in one line

sum (count_over_time({filename=“/var/log/nginx/access.log”}[1m]
| pattern <_> <_> "<_> <request> <_>" <_> <_> "<_>" "<_>" "<_>" <_> <_>
|~ “/json//users/*********” - User id here
)) by(request)

Hi @asivolobov,

Welcome to the :grafana: community support forums !!

Please review the submission template and include more details:

  • What Grafana version and what operating system are you using?
  • What is your datasource?
  • What visualization panel you are using e.g. time-series, bar chart, histogram etc?
  • What are you trying to achieve?
  • How are you trying to achieve it?
  • What happened?
  • What did you expect to happen?
  • Can you copy/paste the configuration(s) that you are having problems with?
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
  • Did you follow any online instructions? If so, what is the URL?