Dashboards & Visualizations

Module Title

matthewcanty
Communicator

How do I give this SingleValue a title?

<param name="label">My Nice Label</param>
  <module name="SingleValue">...

The above causes "Splunk cannot find the ... view."

<module name="HiddenSearch" layoutPanel="panel_row2_col1_grp1" autoRun="True">
<param name="search">
    host="APP90*-TSDAL" FeedSource="*"      
</param>
<earliestTime>-1d</earliestTime>


<module name="HiddenPostProcess" layoutPanel="panel_row2_col1_grp1">
  <param name="search">
    search FeedSource="abelson" | stats max(_time) As LatestTime by FeedSource 
    | eval Gap=round(((now()-LatestTime)/60),1)
    | rangemap field=Gap low=0-10 elevated=10-30 severe=30-60 default=severe
  </param>      
  <module name="SingleValue">
    <param name="field">Gap</param>
    <param name="beforeLabel">></param>
    <param name="afterLabel">min</param>
    <param name="classField">range</param>
  </module>    
</module>
0 Karma
1 Solution

MHibbin
Influencer

Assuming the code above is copied from the actual XML... on your "beforeLabel" you have to greater than symbols (i.e. <param name="beforeLabel">></param> should be <param name="beforeLabel"></param>).

Also have you tried the following (instead of the order you used in the example)

<module name="SingleValue">
  <param name="label">My Nice Label</param>
  ...
</module>

Regards,

MHibbin

View solution in original post

0 Karma

MHibbin
Influencer

Assuming the code above is copied from the actual XML... on your "beforeLabel" you have to greater than symbols (i.e. <param name="beforeLabel">></param> should be <param name="beforeLabel"></param>).

Also have you tried the following (instead of the order you used in the example)

<module name="SingleValue">
  <param name="label">My Nice Label</param>
  ...
</module>

Regards,

MHibbin

0 Karma

MHibbin
Influencer

you should try encasing the ">" in a CDATA tag then, otherwise Splunk will try to close a tag that doesn't exist.

e.g. <param name="beforeLabel"><![CDATA[>]]></param>

OR use the &gt; in place of the symbol, e.g.

<param name="beforeLabel">&gt;</param>

0 Karma

matthewcanty
Communicator

This causes the same problem as mentioned above. I am now using Production Services Running which works. The greater than symbol is intentional!

0 Karma
Get Updates on the Splunk Community!

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...

Splunk Up Your Game: Why It's Time to Embrace Python 3.9+ and OpenSSL 3.0

Did you know that for Splunk Enterprise 9.4, Python 3.9 is the default interpreter? This shift is not just a ...