Splunk Search

How to see charts result real time

disha
Contributor

I am drawing a line chart of Memory usage. If User select time as last 15 min or anything..how I can refresh the page so that the line chart is keep adding the new coming values for new time..
My search here..


line
connect
Time Stamp
Avg(Memory Usage)(MB)
bottom


300px
true
....
How to autorefresh the chart for new timestamps..as data is coming in every 30 seconds.
Please suggest.
Thanks

Tags (1)
0 Karma
1 Solution

jonuwz
Influencer

The simplest way would be to refresh the whole page every so often by setting the refresh parameter in the advancedxml :

<view isVisible="true" refresh="60" template="dashboard.html">

Another alternative would be to configure the search in the chart to be realtime like this :

  <module name="HiddenSearch">
    <param name="search">* | timechart count</param>
    <param name="latest">rt</param>
    <param name="earliest">rt-60m</param>
    <module name="HiddenChartFormatter">
      <param name="charting.chart">line</param>
      <module name="JSChart"/>
    </module>
  </module>

Failing that, search for AutoRefresh in splunk-base for a custom module that will refresh modules on a page on a set interval

View solution in original post

jonuwz
Influencer

The simplest way would be to refresh the whole page every so often by setting the refresh parameter in the advancedxml :

<view isVisible="true" refresh="60" template="dashboard.html">

Another alternative would be to configure the search in the chart to be realtime like this :

  <module name="HiddenSearch">
    <param name="search">* | timechart count</param>
    <param name="latest">rt</param>
    <param name="earliest">rt-60m</param>
    <module name="HiddenChartFormatter">
      <param name="charting.chart">line</param>
      <module name="JSChart"/>
    </module>
  </module>

Failing that, search for AutoRefresh in splunk-base for a custom module that will refresh modules on a page on a set interval

disha
Contributor

Thankyou So much. AutoRefresh is the module..I was looking for. Thanks for guiding me in right direction.
Thanks

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 ...