- if (strcasecmp ("Regex", option->key) == 0)
- status = cf_util_get_string (option, &cm.regex);
- else if (strcasecmp ("ExcludeRegex", option->key) == 0)
- status = cf_util_get_string (option, &cm.excluderegex);
- else if (strcasecmp ("DSType", option->key) == 0)
- status = ctail_config_add_match_dstype (&cm, option);
- else if (strcasecmp ("Type", option->key) == 0)
- status = cf_util_get_string (option, &cm.type);
- else if (strcasecmp ("Instance", option->key) == 0)
- status = cf_util_get_string (option, &cm.type_instance);
- else if (strncasecmp ("Latency", option->key, strlen ("Latency")) == 0)
- {
- if (strcasecmp ("LatencyPercentile", option->key) == 0)
- status = latency_config_add_percentile ("tail", &cm.latency, option);
- else if (strcasecmp ("LatencyPercentileType", option->key) == 0)
- status = cf_util_get_string (option, &cm.latency.percentile_type);
- else if (strcasecmp ("LatencyRate", option->key) == 0)
- status = latency_config_add_rate ("tail", &cm.latency, option);
- else if (strcasecmp ("LatencyRateType", option->key) == 0)
- status = cf_util_get_string (option, &cm.latency.rates_type);
- else if (strcasecmp ("LatencyLower", option->key) == 0)
- status = cf_util_get_boolean (option, &cm.latency.lower);
- else if (strcasecmp ("LatencyUpper", option->key) == 0)
- status = cf_util_get_boolean (option, &cm.latency.upper);
- else if (strcasecmp ("LatencyAvg", option->key) == 0)
- status = cf_util_get_boolean (option, &cm.latency.avg);
- else
- {
- WARNING ("tail plugin: Option `%s' not allowed here.", option->key);
- status = -1;
- }
- }
- else
- {
- WARNING ("tail plugin: Option `%s' not allowed here.", option->key);
+ if (strcasecmp("Regex", option->key) == 0)
+ status = cf_util_get_string(option, &cm.regex);
+ else if (strcasecmp("ExcludeRegex", option->key) == 0)
+ status = cf_util_get_string(option, &cm.excluderegex);
+ else if (strcasecmp("DSType", option->key) == 0)
+ status = ctail_config_add_match_dstype(&cm, option);
+ else if (strcasecmp("Type", option->key) == 0)
+ status = cf_util_get_string(option, &cm.type);
+ else if (strcasecmp("Instance", option->key) == 0)
+ status = cf_util_get_string(option, &cm.type_instance);
+ else {
+ WARNING("tail plugin: Option `%s' not allowed here.", option->key);