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.
↧