We have an accelerated data model and would like to be able to use a where clause from TSTATS that includes:
_index_earliest=-h@h AND _index_latest=@h
_indextime does seem to be a field that is available in the DMA. But trying to use the where clause above does not work.
We want to generate TSTATS values for events that have been indexed in the previous hour.
Here is the full SPL:
min(_time) as _time
sum(nmds_app_dest_survey.bytes) as bytes
sum(nmds_app_dest_survey.flow_count) as flow_count
WHERE _index_earliest=-h@h AND _index_latest=@h
At this time _indextime fields are not included in the datamodel accelerations. I imagine this is due to optimization with regards to both disk space and memory usage during the acceleration process.
If you are interested in having a field that tracks the time the accelerated event gets written to disk, then I encourage you to submit the idea to the ideas portal at https://ideas.splunk.com/.