Skip to content

Commit

Permalink
fix zgrep pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Aug 2, 2024
1 parent e4a3dcf commit 6e85a79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rook/usage/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ def collect(self, time_start=None, time_end=None, outdir=None):

def parse(self, log_files, time_start=None, time_end=None, outdir=None):
records = []
search_pattern = f'"{self.output_path}' # Match request with the output path
# zgrep "GET /outputs/rook/.*/.*\.nc" /var/log/nginx/access.log-20240801.gz
search_pattern = (
rf"GET {self.output_path}/.*/.*\.nc" # Match request with the output path
)

for log_file in log_files:
try:
Expand Down

0 comments on commit 6e85a79

Please sign in to comment.