I’m new to my PLG, and facing some issues with the monitoring, please suggest on this.
my log format is like below - which has utc time as timestamp
ex: 2021-09-27T06:39:42.1756Z 200 00:00.001 18.104.22.168 testuser GET this is log message
and below is the promtail configuration
- url: http://localhost:3100/loki/api/v1/push
- job_name: API Activity
expression: “^(?s)(?P\S+?) (?P\S+?) (?P\S+?) (?P\S+?) (?P\S+?) (?P\S+?) (?P.*)$”
- The timestamp showing in grafana dashboard is time in which the logs have added to Loki.
- old logs are not processing, only new ones are getting displayed in grafana.
- how to calculate (LogQL query) the average duration of all calls in each server (host label) ?
thanks in advance,