Reporting

How do you reference a "root search" from a Data Model?

rjthibod
Champion

I have been using Objects and Pivot with much success. In the process of trying to play with the "Root Search" concept, I cannot find documentation on how to actually use the root search. Specifically, how does one include a root search in a Simple XML dashboard? For this example, assume my data model's object ID is "my_dm" and the root search's object id "summary_ids".

Do I reference "summary_ids" in the search field? Do I specify "id='summary_ids'" in a "search" XML field?

Please point me to any documentation or examples that you know of.

Tags (2)
0 Karma
1 Solution

MuS
Legend

Hi rjthibod,

You can use the pivot command instead http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Pivot
Just tested it and created a root search called foo in my datamodel called Tutorial which is basically just a * search and I get back some events from the Splunk Unix App and therefore a field called COMMAND. So I can use this to test the pivot command like this:

| pivot Tutorial foo values(COMMAND) AS COMMAND

works like a charm.....

cheers, MuS

View solution in original post

MuS
Legend

Hi rjthibod,

You can use the pivot command instead http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Pivot
Just tested it and created a root search called foo in my datamodel called Tutorial which is basically just a * search and I get back some events from the Splunk Unix App and therefore a field called COMMAND. So I can use this to test the pivot command like this:

| pivot Tutorial foo values(COMMAND) AS COMMAND

works like a charm.....

cheers, MuS

rjthibod
Champion

Thank you! That page is exactly what I was looking for.

MuS
Legend

okay, I'll update my answer so you can accept the correct answer 😉

0 Karma
Get Updates on the Splunk Community!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...