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!

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...