- jq
$ ./scan.sh production_json.log
Example Output:
Email count in prodlogs/production_json.log.0: 2
Emails:
[email protected]
[email protected]
Time:
2024-01-15T13:37:00.420Z
-------------------------
Email count in prodlogs/production_json.log.1: 2
Emails:
[email protected]
[email protected]
Time:
2024-01-14T01:00:03.000Z
-------------------------
Email count in prodlogs/production_json.log.1: 2
Emails:
[email protected]
[email protected]
Time:
2024-01-14T00:00:00.000Z
-------------------------
You should extract all logs (gitlab-rails/production_json.log.*.gz
) and scan them all
Move the logs into it's own directory and run:
$ ./scan.sh prodlogs/production_json.log.*