Skip to content

Instantly share code, notes, and snippets.

@tagomoris
Created April 5, 2012 09:47
Show Gist options
  • Save tagomoris/2309611 to your computer and use it in GitHub Desktop.
Save tagomoris/2309611 to your computer and use it in GitHub Desktop.
<match converted.*>
type output_forest
subtype hoop
remove_prefix converted
<template>
username hoopuser
flush_interval 60s
output_include_time false
output_include_tag false
output_data_type attr:field1,field2,field3,field4
add_newline true
</template>
<tag blog>
hoop_server hoop1.local:14000
path /hoop/log/%Y%m%d/blog-%Y%m%d-%H.log
</tag>
<tag news>
hoop_server hoop2.local:14000
path /hoop/log/%Y%m%d/news-%Y%m%d-%H.log
</tag>
<tag *>
hoop_server hoop3.local:14000
</tag>
</match>
<match converted.*>
type output_forest
subtype hoop
remove_prefix converted
<template>
username hoopuser
flush_interval 60s
output_include_time false
output_include_tag false
output_data_type attr:field1,field2,field3,field4
add_newline true
</template>
<parameter>
path /hoop/log/%Y%m%d/%TAG-%Y%m%d-%H.log
</parameter>
<tag blog>
hoop_server hoop1.local:14000
</tag>
<tag news>
hoop_server hoop2.local:14000
</tag>
<tag *>
hoop_server hoop3.local:14000
</tag>
</match>
<match converted.*>
type output_forest
subtype hoop
remove_prefix converted
<template>
hoop_server hoop.server.local:14000
username hoopuser
flush_interval 60s
output_include_time false
output_include_tag false
output_data_type attr:field1,field2,field3,field4
add_newline true
</template>
<parameter>
path /hoop/log/%Y%m%d/%TAG-%Y%m%d-%H.log
</parameter>
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment