Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Can SPLITROW in Pivot include null fields in the results?

$
0
0
I have a simple pivot search that uses SPLITROW to create a table showing the number of events in an index broken down by the field specified after SPLITROW. | pivot MyModel SomeObject count(SomeObject) SPLITROW SOME.FIELD What the results do not show is the number of events that do not have the specified field defined (in the JSON event). Is there a way to tell pivot to include those when doing SPLITROW? It doesn’t seem like I can use fillnull since “| pivot” needs to be the first command in the search. I tried using the isNull and then appending the original search: | pivot MyModel SomeObject count(SomeObject) FILTER SOME.FIELD is Null | append [search | pivot MyModel SomeObject count(SomeObject) SPLITROW SOME.FIELD ] but it again doesn’t allow | pivot anywhere but at the very beginning of the search.

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>