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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...