Dashboards & Visualizations

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

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

Legend
0 Karma

Legend
0 Karma