Skip to content

Instantly share code, notes, and snippets.

@blackpioter
Created June 21, 2016 08:37
Show Gist options
  • Save blackpioter/c54fd9a4f21d116e626ae779a148b3a1 to your computer and use it in GitHub Desktop.
Save blackpioter/c54fd9a4f21d116e626ae779a148b3a1 to your computer and use it in GitHub Desktop.
nginx CS
## nginx nx: error logs for time span after 15:00
cat all | grep NAXSI_FMT | awk -F'[: ]' '$2 >= 15 { print }' > naxsi_after_15
## nginx: log_format
log_format: |
timed_combined '$remote_addr $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" $request_time $upstream_response_time'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment