In Sorting and Advanced Filtering API document has one like that
filter_tags | Only include sensors with a specific tag (for content="sensors" only).
Using multiple filter_tag fields performs a logical OR. | @tag(tagname).
I tried using tag name with space and comma but it also made a logical OR.
How do I filter tags with logical and?
Article Comments
Will this work with Libraries with Filter by Tags? If no how i can filter only by two tags in?
Sep, 2018 - Permalink
Yes, this works in the mentioned field as well. Use +tag1, +tag2 to have them linked via logical AND.
PRTG Scheduler |
PRTGapi |
Feature Requests |
WMI Issues |
SNMP Issues
Kind regards,
Stephan Linke, Tech Support Team
Sep, 2018 - Permalink
I'm trying to do this with the API and it doesn't seem to work. for example
&filter_tags=@tag(+tag1) = a small set of sensors &filter_tags=@tag(+tag1,+tag2) = a larger set of sensors
it returns sensors that are either tag1 or tag2 instead of AND. Can this not be done on the API?
Oct, 2018 - Permalink
Could you provide me with the whole query? I'm pretty sure that it worked with PRTG 17.x. You're running the latest version I assume?
PRTG Scheduler |
PRTGapi |
Feature Requests |
WMI Issues |
SNMP Issues
Kind regards,
Stephan Linke, Tech Support Team
Nov, 2018 - Permalink
I am using the latest version. Can I email/msg it to you directly? I'd prefer not to post the whole query in a public forum.
Nov, 2018 - Permalink
Sure, just drop us a mail via support@paessler.com.
PRTG Scheduler |
PRTGapi |
Feature Requests |
WMI Issues |
SNMP Issues
Kind regards,
Stephan Linke, Tech Support Team
Nov, 2018 - Permalink
Hi there,
A preceeding + should do the trick here, like this: @tag(+tag,+newtag)
It translates to "Must have this tag and this tag". Let me know if it worked out :)
Kind regards,
Stephan Linke, Tech Support Team
Jul, 2017 - Permalink