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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...