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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

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

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...