mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Change path conflicts between log filters to be auto-corrected.
This change makes it so when differing logging filters on the same stream attempt to write to the same writer/path combination, the path of the filter doing the later write will be automatically adjusted so that it does not conflict with the other. The path is adjusted by appending "-N", where N is the smallest integer greater or equal to 2 required to resolve the path name conflict. Addresses #842.
This commit is contained in:
parent
8633d91c40
commit
63e8bf72ed
7 changed files with 124 additions and 26 deletions
|
@ -0,0 +1,23 @@
|
|||
#separator \x09
|
||||
#set_separator ,
|
||||
#empty_field (empty)
|
||||
#unset_field -
|
||||
#path http-2-2
|
||||
#start 2011-03-18-19-06-08
|
||||
#fields status_code
|
||||
#types count
|
||||
304
|
||||
304
|
||||
304
|
||||
304
|
||||
304
|
||||
304
|
||||
304
|
||||
304
|
||||
304
|
||||
304
|
||||
304
|
||||
304
|
||||
304
|
||||
304
|
||||
#end 2011-03-18-19-06-13
|
|
@ -0,0 +1,23 @@
|
|||
#separator \x09
|
||||
#set_separator ,
|
||||
#empty_field (empty)
|
||||
#unset_field -
|
||||
#path http-2
|
||||
#start 2011-03-18-19-06-08
|
||||
#fields host
|
||||
#types string
|
||||
bits.wikimedia.org
|
||||
upload.wikimedia.org
|
||||
upload.wikimedia.org
|
||||
upload.wikimedia.org
|
||||
upload.wikimedia.org
|
||||
upload.wikimedia.org
|
||||
upload.wikimedia.org
|
||||
meta.wikimedia.org
|
||||
upload.wikimedia.org
|
||||
upload.wikimedia.org
|
||||
upload.wikimedia.org
|
||||
upload.wikimedia.org
|
||||
upload.wikimedia.org
|
||||
upload.wikimedia.org
|
||||
#end 2011-03-18-19-06-13
|
|
@ -0,0 +1,23 @@
|
|||
#separator \x09
|
||||
#set_separator ,
|
||||
#empty_field (empty)
|
||||
#unset_field -
|
||||
#path http-3
|
||||
#start 2011-03-18-19-06-08
|
||||
#fields uri
|
||||
#types string
|
||||
/skins-1.5/monobook/main.css
|
||||
/wikipedia/commons/6/63/Wikipedia-logo.png
|
||||
/wikipedia/commons/thumb/b/bb/Wikipedia_wordmark.svg/174px-Wikipedia_wordmark.svg.png
|
||||
/wikipedia/commons/b/bd/Bookshelf-40x201_6.png
|
||||
/wikipedia/commons/thumb/8/8a/Wikinews-logo.png/35px-Wikinews-logo.png
|
||||
/wikipedia/commons/4/4a/Wiktionary-logo-en-35px.png
|
||||
/wikipedia/commons/thumb/f/fa/Wikiquote-logo.svg/35px-Wikiquote-logo.svg.png
|
||||
/images/wikimedia-button.png
|
||||
/wikipedia/commons/thumb/f/fa/Wikibooks-logo.svg/35px-Wikibooks-logo.svg.png
|
||||
/wikipedia/commons/thumb/d/df/Wikispecies-logo.svg/35px-Wikispecies-logo.svg.png
|
||||
/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/35px-Wikisource-logo.svg.png
|
||||
/wikipedia/commons/thumb/4/4a/Commons-logo.svg/35px-Commons-logo.svg.png
|
||||
/wikipedia/commons/thumb/9/91/Wikiversity-logo.svg/35px-Wikiversity-logo.svg.png
|
||||
/wikipedia/commons/thumb/7/75/Wikimedia_Community_Logo.svg/35px-Wikimedia_Community_Logo.svg.png
|
||||
#end 2011-03-18-19-06-13
|
|
@ -6,18 +6,7 @@
|
|||
#start 2011-03-18-19-06-08
|
||||
#fields ts level message location
|
||||
#types time enum string string
|
||||
1300475168.843894 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475168.975800 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475168.976327 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475168.979160 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475169.012666 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475169.012730 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475169.014860 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475169.022665 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475169.036294 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475169.036798 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475169.039923 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475169.074793 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475169.074938 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475169.075065 Reporter::WARNING Skipping write to filter 'host-only' on path 'http' because filter 'default' has already instantiated the same writer type for that path (empty)
|
||||
1300475168.843894 Reporter::WARNING Write using filter 'host-only' on path 'http' changed to use new path 'http-2' to avoid conflict with filter 'default' (empty)
|
||||
1300475168.843894 Reporter::WARNING Write using filter 'uri-only' on path 'http' changed to use new path 'http-3' to avoid conflict with filter 'default' (empty)
|
||||
1300475168.843894 Reporter::WARNING Write using filter 'status-only' on path 'http-2' changed to use new path 'http-2-2' to avoid conflict with filter 'host-only' (empty)
|
||||
#end 2011-03-18-19-06-13
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue