@jnudell_2 Below I have mention more details about my question. Please go through that.
Example query: "index=_internal | stats count by sourcetype"
I want to know is there any way to pass 'startdate' and 'enddate' on the above mentioned Splunk query.
for example 01/05/2019 (startdate) to 04/05/2019 (enddate) in Splunk search tab page.
If that is not possible in this query then please show me how to do that in any other query.
I am using a custom js page for calling Splunk queries. I have mentioned a sample below
var mySearch = new SearchManager({
id: "mysearch",
preview: true,
cache: false,
search: mvc.tokenSafe('index=_internal | stats count by sourcetype')
});
So if you help me how to achieve 'startdate' and 'enddate' in splunk query(manually) I can run that query in js file and check the data is loading or not.
Thanks in Advance.
... View more