Dashboards & Visualizations

Is it possible to derive the server's time using SplunkJS or by other means using JavaScript?

rharrisssi
Path Finder

Using Math.floor(new Date()/1000); results in the browser's epoch time. Is it possible using the JS libraries provided by Splunk to return the current server-side time? For example I can use Splunk.util.getConfigValue("USERNAME") to get the username of the current person viewing.

1 Solution

sundareshr
Legend
0 Karma

sundareshr
Legend
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...