- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jip31
Motivator
10-12-2020
03:26 AM
Hello
I use the search below in order to display the list of HOSTNAME which have a SITE field that matches
| inputlookup lookup_cmdb
| search HOSTNAME= aaa
OR HOSTNAME= bbb
OR HOSTNAME= ccc
OR HOSTNAME= dddd
| stats values(SITE) as SITE by HOSTNAME
| table HOSTNAME
Instead the host which have a SITE field that matches, I would like to display the host list that have no SITE field
How to do please?
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
10-12-2020
04:25 AM
| inputlookup lookup_cmdb
| search HOSTNAME= aaa
OR HOSTNAME= bbb
OR HOSTNAME= ccc
OR HOSTNAME= dddd
| search NOT SITE="*"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
10-12-2020
03:41 AM
| inputlookup lookup_cmdb
| search HOSTNAME= aaa
OR HOSTNAME= bbb
OR HOSTNAME= ccc
OR HOSTNAME= dddd
| where isnull(SITE)
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jip31
Motivator
10-12-2020
03:53 AM
I have already tested it but like this I have no results......
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
10-12-2020
03:56 AM
| inputlookup lookup_cmdb
| search HOSTNAME= aaa
OR HOSTNAME= bbb
OR HOSTNAME= ccc
OR HOSTNAME= dddd
| where isnull(SITE) OR SITE=""
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jip31
Motivator
10-12-2020
04:09 AM
@ITWhisperer wrote:
| inputlookup lookup_cmdb
| search HOSTNAME= aaa
OR HOSTNAME= bbb
OR HOSTNAME= ccc
OR HOSTNAME= dddd
| where isnull(SITE) OR SITE=""
no results too...
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
jip31
Motivator
10-12-2020
04:10 AM
| where isnotnull(SITE) works but not | where isnull(SITE)
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ITWhisperer

SplunkTrust
10-12-2020
04:25 AM
| inputlookup lookup_cmdb
| search HOSTNAME= aaa
OR HOSTNAME= bbb
OR HOSTNAME= ccc
OR HOSTNAME= dddd
| search NOT SITE="*"
