Dashboards & Visualizations

Splunk dashboard do mathematical operation for set token value

raghu_vedic
Path Finder

Hi,

I want to set token value for setTailValue
if $job.resultCount$ is 3 then value have to set 20-17=3, but its displaying 20-17 as it taking string.

          <set token="setTailValue">20-$job.resultCount$</set>
Tags (1)
0 Karma
1 Solution

rjthibod
Champion

If you are using Splunk 6.3 or newer, you can use eval

<eval token="setTailValue">20-$job.resultCount$</eval>

View solution in original post

0 Karma

rjthibod
Champion

If you are using Splunk 6.3 or newer, you can use eval

<eval token="setTailValue">20-$job.resultCount$</eval>

0 Karma

Umesh_Vedicsoft
Path Finder

Hi raghu_vedic,

Here you can use <eval token="setTailValue">20-$job.resultCount$</eval> instead of <set token="setTailValue">20-$job.resultCount$</set>

Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...