Dashboards & Visualizations

How to show the trend Indicator to the hard coded values in splunk

aditsss
Motivator

Hi Everyone , How can I show trend Indicator to the hardcoded values . I have one single value like this:

| stats count as test | eval test=test+10 |table test .

I am getting 10 as value.

I want to show percentage indicator on it but I am not getting that option in single value. Can someone guide me on that.

Labels (3)
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

After your stats command you have only one field as test. There is no time series data.

You can try below without any changes,  but in any case you should have more than one event.

| timechart count as test | eval test=test+10 

 

If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

scelikok
SplunkTrust
SplunkTrust

Hi @aditsss,

Trend indicator need a time series data. Single value visualization show the last value of the time series data and calculates the percentage using earlier values. You can try using timechart;

| timechart count as test

 

If this reply helps you an upvote is appreciated.

If this reply helps you an upvote and "Accept as Solution" is appreciated.

aditsss
Motivator

@scelikok 

 

I tried like this:

 

| stats count as test | eval test=test+10 |table test| timechart count as test

 

nothing is coming. Can you guide me on this.

0 Karma

scelikok
SplunkTrust
SplunkTrust

After your stats command you have only one field as test. There is no time series data.

You can try below without any changes,  but in any case you should have more than one event.

| timechart count as test | eval test=test+10 

 

If this reply helps you an upvote and "Accept as Solution" is appreciated.

aditsss
Motivator

@scelikok 

 

I tried like this:

| timechart count as test | eval test=test+10

But I not getting any result. How can I add two hardcoded values  and then show trend Indicator between them.

Can you guide me 

0 Karma

aditsss
Motivator

Can someone please guide me on this

0 Karma

aditsss
Motivator

Can someone please guide me on this.

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...