Unable to filter logs based on the date range

Hello!

I am using Jenkins to deploy artifacts on various application servers on RHEL. For the purpose of monitoring Jenkins builds I have configured Grafana and Grafana Loki. Promtail is sending data to Loki data source.

When I explore data using the below query for the last 7 days, I get all the data available in /var/log/jenkins/jenkins.log file.

{job="jenkinsjoblogs"} |="WEBSITE/PROD/Deployment/" |="SUCCESS"

Following is my promtail.yml configuration.

server:
  http_listen_port: 9080
  grpc_listen_port: 0

positions:
  filename: /tmp/positions.yaml

clients:
  - url: http://10.100.80.116:3100/loki/api/v1/push

scrape_configs:
- job_name: jenkinsLogs
  pipeline_stages:
      - regex:
          expression: "^(?s)(?P<time>.+? \\d\\d:\\d\\d:\\d\\d):? (?P<content>.*)$"
      - timestamp:
          source: time
          format: "2020-09-16 07:22:09.792+0000"
      - output:
          source: content
  static_configs:
  - targets:
      - 10.100.80.116
    labels:
      job: jenkinsjoblogs
      __path__: /var/log/jenkins/*.log
*emphasized text**emphasized text*type or paste code here

Can someone please help to fix the issue here?