nginx-module-vts icon indicating copy to clipboard operation
nginx-module-vts copied to clipboard

Need a way to query domain within a filter group

Open kamalkp opened this issue 6 years ago • 3 comments

Hi @vozlt I would like to get the JSON for the filterZone with a custom filter which is a per URI filter for a domain. Just like I can do this for the domain https://www.dallascolos.net/status/control?cmd=status&group=server&zone=dallascolos.net

I am unable to get a JSON for the entire domain on a filter zone with this https://www.dallascolos.net/status/control?cmd=status&group=filter&zone=uris::dallascolos.net@* for all the zones - URIs here for the custom filter key. I get a full list for all filter zones like this https://www.dallascolos.net/status/control?cmd=status&group=filter&zone=* but, I don't want a full list as I am polling quite a few sites, so I would want just the domain that I am polling. Can you please help with this?

**Also, I need a way to limit top requests per URI. Not sure how the node limit works - if that is applicable for this

Thanks, Kamalkishor.

kamalkp avatar Aug 21 '18 10:08 kamalkp

up up up +++

webr00t avatar Dec 18 '19 07:12 webr00t

i need help @kamalkp @vozlt

vhost_traffic_status_filter_by_set_key $geoip_country_code country::$server_name;

status/control?cmd=status&group=server&zone=country::domain.com

this url not working.. pls help

webr00t avatar Jan 01 '20 20:01 webr00t

vhost_traffic_status_filter_by_set_key $geoip_country_code country::$server_name; status/control?cmd=status&group=server&zone=country::domain.com this url not working.. pls help

When accessing the endpoint /status/control with group=server specified, the parameter zone should contain value as the same as the directive server_name in the server block. I don't know the nginx configuration in your case, I think the zone should be domain.com not country::domain.com

metalalive avatar Mar 01 '23 07:03 metalalive