添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

I  use a "link to the search" drilldown from a table panel

When I have a look to my xml, I have a lot of special characters

<drilldown>
          <link target="_blank">search?q=%60index_mesuresc%60%20sourcetype%3D%22ez%3Acitrix%22&amp;earliest=&amp;latest=</link>
        </drilldown>

as far as I know, we can use cdata to correct this?

so I dont know how to use cdata tag for not displaying characters

I have tried this but it doesnt works

<drilldown>
<link target="_blank"><![CDATA[search?q=%60index_mesuresc%60%20sourcetype%3D%22ez%3Acitrix%22&amp;earliest=&amp;latest=]]></link>
</drilldown>

Could you help please?

The link is a URL and has to be encoded as such, for example, spaces are encoded as %20. This is standard for URLs. The URL is "displayed" by the browser in the address bar. Further to this, the string has to be further encoded as the dashboard is SimpleXML, for example, ampersands as encoded as &amp;. This is also standard for XML. Since you have already confirmed that this works, I would go with a functioning solution if I were you.

The link is a URL and has to be encoded as such, for example, spaces are encoded as %20. This is standard for URLs. The URL is "displayed" by the browser in the address bar. Further to this, the string has to be further encoded as the dashboard is SimpleXML, for example, ampersands as encoded as &amp;. This is also standard for XML. Since you have already confirmed that this works, I would go with a functioning solution if I were you.

Splunk, Splunk>, Turn Data Into Doing, Data-to-Everything, and D2E are trademarks or registered trademarks of Splunk Inc. in the United States and other countries. All other brand names, product names, or trademarks belong to their respective owners.