Other Usage

How do we display the date and time on monthly report?

anissabnk
Path Finder

Hello everyone,

I need your help

Display the date and time of the monthly report update at the top of theReport.

anissabnk_1-1679920054695.png

 

Thank you so much

 

 

 

Labels (3)
0 Karma

yeahnah
Motivator

Hi @anissabnk 

A dashboard's or form's label and description cannot be updated using tokens variable in simple XML, sadly.  Likely, could be done using java script.   I'm not sure about Dashboard studio.

It is possible to use tokens in HTML or panel titles, like in this example.

<form>
  <label>Token Example $field1$</label>
  <description>$field1$</description>
  <fieldset submitButton="false">
    <input type="dropdown" token="field1">
      <label>field1</label>
      <choice value="Jan 2023">Jan 2023</choice>
      <choice value="Feb 2023">Feb 2023</choice>
      <choice value="Mar 2023">Mar 2023</choice>
    </input>
  </fieldset>
  <row>
    <panel>
      <html>
        <H1>token field1: $field1$</H1>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <title>Month totals diff comparison $field1$</title>
      <single>
        <search>
          <query>| makeresults | eval time=_time | table time</query>
          <earliest>-15m</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="drilldown">none</option>
        <option name="rangeColors">["0x53a051","0x0877a6","0xf8be34","0xf1813f","0xdc4e41"]</option>
        <option name="showTrendIndicator">0</option>
      </single>
    </panel>
  </row>
</form>


This does not meet your requirement but might be a possible workaround that's easy to implement.

Hope this helps

0 Karma

anissabnk
Path Finder

Thank you for your answer.

Yes I have thought about tokens.

 

But I need some help to do this specific think : display the date of update and time on monthly report?

 

If someone, have an issue ? Please

 

Thanks

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...