Skip to content

Commit

Permalink
Merge pull request #2 from bcgov/bugfix/DBC22-2356
Browse files Browse the repository at this point in the history
DBC22-2356: Update script to remove bad log lines
  • Loading branch information
wmuldergov authored Jun 21, 2024
2 parents d4ee37f + 1aec32e commit 12ef7f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compose/openshiftjobs/scripts/analyzeexportlogs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ if [ ${#zipped_files[@]} -gt 0 ]; then

#Run goaccess on all the log files from the date entered
goaccess_report_name=$start_time_formatted-goaccess_report.html
zcat "${zipped_files[@]}" | goaccess - -o "$goaccess_report_name" --log-format='~h{, } %e %^[%x] "%r" %s %b "%R" "%u" %C "%M" %T' --datetime-format='%d/%b/%Y:%H:%M:%S %z' --ignore-panel=REMOTE_USER --ignore-panel=ASN --tz=America/Vancouver --jobs=2 --geoip-database=$mmdb_file
zcat "${zipped_files[@]}" | grep -v '^-\s' | goaccess - -o "$goaccess_report_name" --log-format='~h{, } %e %^[%x] "%r" %s %b "%R" "%u" %C "%M" %T' --datetime-format='%d/%b/%Y:%H:%M:%S %z' --ignore-panel=REMOTE_USER --ignore-panel=ASN --tz=America/Vancouver --jobs=2 --geoip-database=$mmdb_file
echo "GoAccess report generated successfully at $goaccess_report_name"

# Get the start date formated in YYYY/MM/DD format
Expand Down

0 comments on commit 12ef7f5

Please sign in to comment.