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
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...