Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to set earliest_time variable to month/day/year in HTML format?

$
0
0
I have a html table then the search for the table has the different fields for example: var search1 = new SearchManager({ "id": "search1", "cancelOnUnload": true, "latest_time": "$latest$", "status_buckets": 0, "earliest_time": "0", "search": " | inputlookup kvstore_lookup | eval KeyID = _key | table KeyID, CustID, CustName, CustStreet, CustCity, CustState, CustZip", "app": utils.getCurrentApp(), "auto_cancel": 90, "preview": true, "runWhenTimeIsUndefined": false }, {tokens: true}); . and I am wondering if there is a way to set that "earliest_time" field to m/d/y:00:00:00? I found out that later by changing the search to have the earliest and latest in the search string it works as: search1.settings.attributes.search = "...earliest="09/18/2017:00:00:00" latest=now | table ..." and that will work but I don't want to it that way I would rather set the earliest_time variable to be that format but when I try to do that, it says invalid earliest time format.

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>