Create production-logs.yaml

patch-1
Geeknik Labs 2021-07-24 14:28:33 -05:00 committed by GitHub
parent 2c0aa783c4
commit e428dc6454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,35 @@
id: production-logs
info:
name: Discover production log files
author: geeknik
severity: info
requests:
- method: GET
path:
- "{{BaseURL}}/log/production.log"
- "{{BaseURL}}/logs/production.log"
- "{{BaseURL}}/production.log"
matchers-condition: and
matchers:
- type: word
words:
- "Connecting to database specified by database.yml"
- "Started GET"
condition: and
- type: word
part: header
words:
- "text/html"
negative: true
- type: status
status:
- 200
extractors:
- type: regex
name: last_modified
part: header
regex:
- 'Last-Modified:.*'