Skip to content

Filtering source hosts #121

Answered by tadeboro
Dominixol asked this question in Q&A
Oct 19, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

There are two ways of combining filtering conditions: using the AND and OR operators. Your query

query:
  - company: LIKE XYZ
  - install_status: = 5003

will return CMDB items that contain the XYZ string in the company name OR whose install status is equal to 5003. If you change your query to

query:
  - company: LIKE XYZ
    install_status: = 5003

inventory plugin will return CMDB items that contain the XYZ string in the company name AND whose install status is equal to 5003. Of course, you can also combine those things. For example:

query:
  - company: LIKE XYZ
    install_status: = 5003
  - install_status: = 5004

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Dominixol
Comment options

Answer selected by Dominixol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants