Splunk Dev

How to make single value trend dashbaord?

appleman
Contributor

alt textIt looks like I need an external java and css script to create single value trend dashboard like the example below. But I've just started to use splunk6, and have no idea what to do.
What do I need to create the one like the sample?
It even doesn't show the single value result on my dashboard.
I'm looking forward any advice.

Thank you.


添付のようなダッシュボードを作成するには、external java and cssが必要と書いてあったのですが、実際にはどのようにすればいいのかご教授下さい。
単純にシングルバリューでダッシュボードを作成したのですが、結果が表示されないのはなぜでしょうか。





ID数
index=A sourcetype=c_log
| stats dc(name) as name
| rangemap field=corp_name low=0-1000 elevated=1001-2000 default=severe

0
now
count

登録数
search
12/12/2013 現在
range

  <searchString>index=A sourcetype=c_log | eval total=(max_count + max_count_a + max_count_b) | stats sum(total) as total | rangemap field=total low=5000-100000 elevated=100001-200000 default=severe</searchString>
  <earliestTime>0</earliestTime>
  <latestTime>now</latestTime>
  <option name="field">count</option>
  <option name="afterLabel">![alt text][2]</option>
  <option name="beforeLabel">登録数</option>
  <option name="linkView">search</option>
  <option name="underLabel">12/12/2013 現在</option>
  <option name="classField">range</option>
</single>


0 Karma
1 Solution

bananaman
Path Finder

このダッシュボードで2つ目のサーチ結果は単一値として出力されていますでしょうか?

また、表示がされない状態のビュー上は「No Search Query Provided」とメッセージが出ていますでしょうか?

もし上記2つの条件であれば、1つ目のサーチを指定するタグをsearchStringとstring部分を
大文字にすれば単一値として
問題なく表示されるかと思います。

ご質問内容と齟齬がありましたらお許しください。

View solution in original post

bananaman
Path Finder

このダッシュボードで2つ目のサーチ結果は単一値として出力されていますでしょうか?

また、表示がされない状態のビュー上は「No Search Query Provided」とメッセージが出ていますでしょうか?

もし上記2つの条件であれば、1つ目のサーチを指定するタグをsearchStringとstring部分を
大文字にすれば単一値として
問題なく表示されるかと思います。

ご質問内容と齟齬がありましたらお許しください。

melonman
Motivator

もう一つ見つけました。
2つ目のサーチで、Single Valueとして引っ張ってくるフィールド名の指定が間違ってます。
optionのfield部分がcountになってますが、これをtotalに治す必要がありますな。

コードを見なおしてみてください。

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

ATTENTION: We’re Moving! (AGAIN!)

The Splunk Community Slack is undergoing a system migration to keep our workspace secure and ...

Deep Dive: Optimizing Telemetry Pipelines in Splunk Observability Cloud

In this session, we will peel back the layers of Splunk Observability Cloud’s cost-optimization features. ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...