Splunk Search

Why am I getting "the search was not found" trying to pass a clicked value to a search with a drilldown in Simple XML?

TJemisonIpacc
Explorer

Hello.

I'm trying to pass a clicked value into a search with a drill down. How would I do this? I've tried using the following:

<drilldown>
          <condition field="Exceptions">
            <link>![CDATA[
              /en-US/app/search/search?q=search%20host%3D"inf012prd*.ipacc.com"%20source%3D"%2Flogging%2FPaymentsServiceV3%2Finf012prd*.ipacc.com%2Ferror.log"&amp;earliest=%40d&amp;latest=now&amp;sid=1434981359.49340q=$click.name2$
                ]]</link>
          </condition>
        </drilldown>

However, that only gives me a "the search was not found" error. What am I doing wrong?

EDIT: After searching around, I tried using <searchstring> in the XML, but using that didn't bring me to my destination when I clicked on the field in my chart.

0 Karma

himynamesdave
Contributor

In that URL there is a search ID. Search IDs (the search) expires after 15 mins. Try removing the SID from the URL. Something like:

/en-US/app/search/search?q=search%20host%3D"inf012prd*.ipacc.com"%20source%3D"%2Flogging%2FPaymentsServiceV3%2Finf012prd*.ipacc.com%2Ferror.log"&amp;earliest=%40d&amp;latest=now&amp;q=$click.name2$
0 Karma

himynamesdave
Contributor

Why is there 2 searches (q=) in the URL? I see you are just passing a token in the second search, without a search command. Why is this not included in the first search?

0 Karma

TJemisonIpacc
Explorer

I added the second "q=" because the Splunk documentaton said to format it like this:

<link> URL?q=$dest_value$ </link>

I removed the second search and placed the token in the first, but I'm still getting the same error.

0 Karma

TJemisonIpacc
Explorer

Ok, I tried this, but I'm still getting the same error. Good call on the search id, though.

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...