Where with multiple conditions in OR

An example of a query to get all the nodes with a specific role, in particular all the nodes which are web or domain name server (DNS) servers.

With the where command, you can separate many conditions with OR

Note: Because the roles field contains a list of values, you can use the include? operator to check if a value was contained in the list.
nodes | where roles include? web_server OR roles include? dns_server | select id roles
Figure 1. Where with multiple conditions in OR example

Where with multiple conditions in OR example