Dashboards & Visualizations

Does Splunk support fields with whitespace from custom drill-down

splunkrocks2014
Communicator

I have a statistic table with some of the field names contained whitespace, and I created a custom drill-down for each field and pass the parameters to another dashboard when clicked on the field. Here is the sample codes from the statistic table:

...
<option name="count">5</option>
<drilldown>
   <link field="status">
       /app/my_app/details_dashboard?form.http_status=$row.status$
   </link>
</drilldown>

The code showed above only works if the field doesn't contain a whitespace. For the fields with whitespace, I defined as below:

...
<drilldown>
   <link field="Network Location">
      /app/my_app/details_dashboard?form.location=$row.\"Network Location\"$
   </link>
</drilldown>

However, it doesn't work at all. I would like to find out if Splunk supports fields with whitespace from custom drill-down. If any, what is the correct way to handle it? Thanks.

Tags (1)
0 Karma

mrgibbon
Contributor

Try with just $row.Network Location$
I have a similar issue, with needing the passed variable to appear in the new search as "just like this" and not just like this.
If that makes sense.

duartet
Path Finder

This works, thanks!

0 Karma

nravichandran
Communicator

You can work-around this my using the replace function. | replace "" with "*" |

0 Karma

splunkrocks2014
Communicator

Hi nravichandran, I am not clear what you meant. Could you please explain more? thanks.

0 Karma

nravichandran
Communicator

If you know the fields before-hand then you can rename the fields.

0 Karma

splunkrocks2014
Communicator

Well, the end-users request the field names with whitespace ...

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...