All Apps and Add-ons

Calendar app Drilldown options

coreyCLI
Communicator

I have the Calendar App version 1.1.1.  We are in the process of pulling down 1.1.5 for testing.  We use the calendar to display Jira tickets for after hours call-ins.  I have not found a solution where I can get the Jira ticket to populate the URL when a user clicks on the Jira ticket displayed on the calendar.  The only values I can grab from the visualization and put into a token are _time and the epoch.  I want to be able to redirect users to Jira and the specific Jira ticket number displayed in the calendar.

Labels (1)
0 Karma

coreyCLI
Communicator

I ended up (for now) using the epoch time available in the native $value$ token in dashboard studio.  I then pass that epoch valie to a hidden table to search for the jira ticket number.  When that completes and populates another token using the search results it opens a hidden markdown box that then allows the user to click it to be redirected to Jira with the ticket number in the URL so they can go straight to that ticket.  Its a little hokey but its working for them for now until I can find an alternative.

bowesmana
SplunkTrust
SplunkTrust

An alternative would be to use the existing epoch value given from the calendar drilldown and open a new search showing a table of tickets matching that _time value when the ticket is clicked and then have a second layer drilldown from the table to the URL, which would be very easy.

You can make that second table small and you can make it only conditionally visible using "depends="$token$" construct in your XML.

 

0 Karma

coreyCLI
Communicator

Using the EPOCH is something I have been testing out.

0 Karma

bowesmana
SplunkTrust
SplunkTrust

Here's a small example that creates 2 dummy tickets per day for 30 days and it shows the calendar and supports drilldown. The table below uses the search from the timechart (created as a base search) from the ticket search to just find the tickets on that clicked day. It then transposes the table and shows the tickets and drilldown can then be done on those tickets.

Hope this is useful

<dashboard version="1.1" theme="light">
  <label>calendar_test</label>
  <row>
    <panel>
      <viz type="calendar_app.calendar">
        <search id="base_calendar_data">
          <query>
| makeresults count=60
| streamstats c
| eval _time=now() - (floor(c / 2) * 86400)
| eval ticket="JIRA".(random() % 10000000 + 1000000)
| timechart span=1d limit=0 count by ticket
          </query>
          <earliest>-30d</earliest>
          <latest>now</latest>
          <sampleRatio>1</sampleRatio>
        </search>
        <option name="calendar_app.calendar.calendarView">month</option>
        <option name="calendar_app.calendar.defaultDate">last</option>
        <option name="calendar_app.calendar.showWeekNumbers">false</option>
        <option name="calendar_app.calendar.showWeekends">true</option>
        <option name="drilldown">all</option>
        <option name="height">644</option>
        <option name="trellis.enabled">0</option>
        <option name="trellis.scales.shared">1</option>
        <option name="trellis.size">medium</option>
        <drilldown>
          <set token="tok_day">$click.value$</set>
          <eval token="tok_date">strftime($click.value$, "%F")</eval>
        </drilldown>
      </viz>
      <table depends="$tok_day$">
        <title>Tickets raised on $tok_date$ - select a ticket to go to the JIRA site</title>
        <search base="base_calendar_data">
          <query>
| where _time>=$tok_day$ AND _time&lt;=$tok_day$
| transpose 0 column_name=ticket
| where 'row 1'>0 AND !match(ticket, "^_")
| fields ticket
          </query>
        </search>
        <drilldown>
          <link target="_blank">https://www.google.com?q=$click.value$</link>
        </drilldown>
      </table>
    </panel>
  </row>
</dashboard>

 

0 Karma

bowesmana
SplunkTrust
SplunkTrust

The calendar app does not support any kind of drilldown tokens other than the basic $click.*$ tokens. You'd have to modify the Javascript to be able to do that.

Depending on how your data is and the amount of data you need to show, you could look at two other apps that do support a lot of customisation, firstly the event timeline

https://splunkbase.splunk.com/app/4370

The author is an active developer. That type of view may or may not work for you.

The other is Number Set, again by a very active developer

https://splunkbase.splunk.com/app/6915

This is not specifically time based, but you can position the 'values' at fixed positions in a grid, so you could make it work, again depending on the volume of tickets you are talking about.

 

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Where Innovation Takes Flight: The Splunk4Aviation Flight Sim Lands at .conf26

If you hear someone at .conf26 shouting "gear down, GEAR DOWN" across the show floor, you have found us.  The ...

Turn Cisco Telemetry Into Action with Cisco Data Fabric, powered by the Splunk ...

The surge in machine data is already hitting enterprise budgets, and the agentic era will only intensify it. ...

Persistent Queue at TcpOut — One of Splunk's Most Practical Features

Splunk introduced persistent queueing at the tcpout layer as one of the most practical resilience features in ...