- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Multiple where values
ashishlal82
Explorer
08-25-2016
10:45 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

DalJeanis
Legend
02-28-2017
12:33 PM
Yes, you can use OR. The actual issue there is probably that you are missing the word OR and missing a quote before the value 2009-2271.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

jbanerje
Explorer
02-28-2017
08:24 AM
Multiple conditions can be checked by the where clause as shown below :
| inputlookup test.csv | where like(field1, "IP") and not like(field2, "Pass")
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

sundareshr
Legend
08-25-2016
10:49 AM
Yes, you can use OR, like this where name="abc" OR name="xyz"
OR you can use ... | search name="abc" OR name="xyz"
. Having said that, you should always try to reduce as much as you can in the first (implicit) search command in terms of efficiency. So I would change your query to
index=xyz sourcetype=abc (name="2009-2274" OR name="2009-2271") | dedup name
