- kind: regex
pattern: '^(\d{1,3}(?:\.\d{1,3}){3}|[0-9a-fA-F]{1,4}(?::[0-9a-fA-F]{0,4}){2,7})\s+-\s+\S+\s+\['
category: ipv4
label: nginx_access_client_ip
- kind: regex
pattern: '"\S+\s+\S+\s+HTTP/[\d.]+"\s+\d+\s+\d+\s+"(https?://[^"]+)"'
category: url
label: nginx_access_referer
- kind: regex
pattern: '(?i)[?&](?:user(?:name)?|email)=([^&\s"'']+)'
category: name
label: nginx_query_user_email
- kind: regex
pattern: ',\s*client:\s*(\d{1,3}(?:\.\d{1,3}){3}|[0-9a-fA-F:]{2,39}),'
category: ipv4
label: nginx_error_client_ip
- kind: regex
pattern: ',\s*server:\s*([a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z]{2,})+),'
category: hostname
label: nginx_error_server_host
- kind: regex
pattern: ',\s*host:\s*"([a-zA-Z0-9](?:[a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z]{2,})+)"'
category: hostname
label: nginx_error_host_header
- kind: regex
pattern: '(?i)\buser\s+"([^"]{1,64})"\s+was\s+not\s+found'
category: name
label: nginx_auth_username
- kind: regex
pattern: '(?i)\bupstream:\s*"([a-z][a-z0-9+.\-]+://[^\s"''<>]+)"'
category: url
label: nginx_upstream_url
- kind: regex
pattern: '(?i)(?:x-real-ip|x-forwarded-for):\s*((?:[\d.]+|[0-9a-fA-F:]+)(?:[,\s]+(?:[\d.]+|[0-9a-fA-F:]+))*)'
category: ipv4
label: nginx_forwarded_ip
- kind: allow
values:
- "nginx"
- "nginx.conf"
- "nginx.org"
- "nginx.com"
- "unix:/var/run/php/php-fpm.sock"
- "unix:/var/run/fastcgi.sock"
- "unix:/var/run/nginx.sock"
- "true"
- "false"
- "yes"
- "no"
- "null"
- "none"
- "nil"
- "0"
- "1"
- "localhost"
- "127.0.0.1"
- "0.0.0.0"
- "::1"
- "changeme"
- "example"
- "sample"
- "placeholder"
- "${*}"
- "{{*}}"
- "example.com"
- "example.org"