Dashboards & Visualizations

Surprising behavior of nav collections of saved searches

Path Finder

I have collections with matches that overlap; for example, I might have an 'SMTP Errors' search that would match both <saved match="SMTP"> and <saved match="Errors"> in different collections. Clearly this is what the attribute source="all" is for, versus source="unclassified".

What is surprising, however, is that searches that have matched with source="all" will, later in the XML, also match a source="classified", so that the catch-all at the end of the default nav menu, "<saved source="unclassified">", includes the searches that have been included in collection. I would expect that they would not match the latter. It sorta defeats the point of making collections, doesn't it?

Am I missing something here? Is this a known bug or is this actually desirable behavior for some use case that I cannot think of?

0 Karma
1 Solution

Splunk Employee
Splunk Employee

This is deliberate. The assumption is that if you're using all, then using any other sources or matches later, that all should not consume all the items. If you use source="all", and it did consume all matches, then all subsequent collections will be empty. I'm not sure why that behavior would be useful.

View solution in original post

0 Karma

Splunk Employee
Splunk Employee

This is deliberate. The assumption is that if you're using all, then using any other sources or matches later, that all should not consume all the items. If you use source="all", and it did consume all matches, then all subsequent collections will be empty. I'm not sure why that behavior would be useful.

View solution in original post

0 Karma

Path Finder

Do I understand correctly then that it is not possible to have items that appear in multiple collections using match but do not appear in the final catch-all of unclassified items?

I cannot see why the case you present would be useful either, but that seems like a degenerate case, like using "DELETE * FROM table" in SQL--both meant to be paired with a filter, using match in this case.

Perhaps implicit in your answer is that source="all" would consume all of the items before the match is supplied? That would also be surprising.

0 Karma