# it is a sample how to analyze response_time, response_code and user_agent for each virtual domain websites.
type rewrite_tag_filter
rewriterule1 domain ^maps\.google\.com$ site.GoogleMap
rewriterule2 domain ^news\.google\.com$ site.GoogleNews
rewriterule3 domain ^mail\.google\.com$ site.GoogleMail
type copy
type forest
subtype datacounter
unit minute
count_key response_time
outcast_unmatched false
aggregate all
tag gf.responsetime.__TAG__
pattern1 0-100msec ^\d{1,5}$
pattern2 100-300msec ^[1-2]\d{5}$
pattern3 300-600msec ^[3-5]\d{5}$
pattern4 600msec-1sec ^[6-9]\d{5}$
pattern5 1-2sec ^1\d{6}$
pattern6 2-10sec ^[2-9]\d{6}$
pattern7 10sec_over ^\d{8,}$
type forest
subtype datacounter
unit minute
outcast_unmatched false
aggregate all
tag gf.responsecode.__TAG__
count_key status
pattern1 200 ^200$
pattern2 2xx ^2\d\d$
pattern3 301 ^301$
pattern4 302 ^302$
pattern5 3xx ^3\d\d$
pattern6 403 ^403$
pattern7 404 ^404$
pattern8 410 ^410$
pattern9 4xx ^4\d\d$
pattern10 500 ^5\d\d$
type forest
subtype datacounter
unit minute
count_key agent
outcast_unmatched false
aggregate all
tag gf.useragent.__TAG__
pattern1 api HttpRequest
pattern2 robot (spider|bot|crawler|\+http\:)
pattern3 smartphone (iPhone|iPod|Android|dream|CUPCAKE|blackberry|webOS|incognito|webmate|IEMobile)
pattern4 mobile (^KDDI|UP.Browser|DoCoMo|Vodafone|SoftBank|WILLCOM)
pattern5 pc .+
type forest
subtype growthforecast
remove_prefix gf.responsecode.site
gfapi_url http://10.10.0.55:5125/api/
service __TAG__
section response_code
name_keys 301_count,302_count,3xx_count,403_count,404_count,410_count,4xx_count,500_count
type forest
subtype growthforecast
remove_prefix gf.responsetime.site
gfapi_url http://10.10.0.55:5125/api/
service __TAG__
section response_time
name_keys 0-100msec_percentage,100-300msec_percentage,300-600msec_percentage,600msec-1sec_percentage,1-2sec_percentage,2-10sec_percentage,10sec_over_percentage
type forest
subtype growthforecast
remove_prefix gf.useragent.site
gfapi_url http://10.10.0.55:5125/api/
service __TAG__
section useragent
name_keys pc_count,mobile_count,smartphone_count,robot_count,api_count