scanners/scan_rails_logs.rb in danielsdeleo-teeth-0.1.1 vs scanners/scan_rails_logs.rb in danielsdeleo-teeth-0.1.2
- old
+ new
@@ -57,10 +57,10 @@
r.view_throwaway_tokens '<COMPLETED_REQ_VIEW_STATS>{CATCHALL}', :ignore => true
r.start_db_stats '<REQUEST_COMPLETED>DB":"', :begin => "COMPLETED_REQ_DB_STATS"
r.db_s '<COMPLETED_REQ_DB_STATS>[0-9]+\.[0-9]+', :begin => "REQUEST_COMPLETED"
r.db_ms '<COMPLETED_REQ_DB_STATS>[0-9]+', :begin => "REQUEST_COMPLETED"
r.db_throwaway_tokens '<COMPLETED_REQ_DB_STATS>{CATCHALL}', :ignore => true
- r.url '<REQUEST_COMPLETED>\[{PROTO}"\/\/"({HOST}|{IP4_OCT}"."{IP4_OCT}"."{IP4_OCT}"."{IP4_OCT})({REL_URL}|"\/")?\]', :strip_ends => true
+ r.url '<REQUEST_COMPLETED>\[{PROTO}"\/\/"({HOST}|({IP4_OCT}"."{IP4_OCT}"."{IP4_OCT}"."{IP4_OCT}))({REL_URL}|"/"|"\\\\")?\]', :strip_ends => true
r.http_response '<REQUEST_COMPLETED>{HTTPCODE}'
r.strings '<REQUEST_COMPLETED>{NON_WS}{NON_WS}*'
r.ignore_others '<REQUEST_COMPLETED>{CATCHALL}', :ignore => true
# fallback to collecting strings
r.strings '{NON_WS}{NON_WS}*'
\ No newline at end of file