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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...