我假设该PAMapped字段已被提取...
我将使用fillnull命令 ( docs ) 为该字段中的所有空值添加一个通用值。然后,这将允许对具有 NULL 值的字段进行更简单的过滤,就像在您的用例中一样。
例如,您可能可以执行以下操作:
index=savvis-varnish host="dell1000a-12" source="/flocal/logs/lawyers.findlaw.com/search-mapping.log" earliest=-1mon@mon | fillnull value=NULL PAMapped | search PAMapped=NULL
这可能不是最有效的搜索,但它可能会提供更好的扩展潜力。
您也可以尝试使用where命令来过滤结果(docs1和docs2),类似以下内容可能会起作用:
index=savvis-varnish host="dell1000a-12" source="/flocal/logs/lawyers.findlaw.com/search-mapping.log" earliest=-1mon@mon | where isnull(PAMapped)
希望这可以帮助。
PS 您可以在 SplunkBase 官方 Splunk 论坛上找到更多有用和及时的回复。