Skip to content

Instantly share code, notes, and snippets.

View amman20's full-sized avatar

Abdulrahman Mubarak Bin Makhashen amman20

View GitHub Profile
@amman20
amman20 / nginx-combine-access-logs.sh
Created October 31, 2020 07:22 — forked from jonlabelle/nginx-combine-access-logs.sh
Combine Nginx Access Log files into one file.
#!/usr/bin/env bash
set -e
##
# Combine all Nginx Access Log files, into one log file. Starting with the
# oldest log file(s) at the bottom, with the newest log file(s) on top.
#
# Useful for exporting into log analyzers, or bulk importing into tools like
# Splunk.