Knowledge Management

How can I get the list of all data model along with the last time it has been accessed in a tabular format

sravani27
Path Finder

Hi, I am trying to generate a report of all the data models that I have in my environment along with the last time it has been accessed to do a cleanup. Can anyone help with the search query?

Tags (1)
0 Karma

woodcock
Esteemed Legend

See the other answer by @adonio and add this:

See scheduled search runs:

index=_* sourcetype=scheduler 
| stats count by savedsearch_id

See SPL inside of saved searches:

| rest /servicesNS/-/-/saved/searches
0 Karma

adonio
Ultra Champion

start here:
| rest /services/datamodel/acceleration
or here:
| rest /services/datamodel/model

hope it helps

0 Karma

woodcock
Esteemed Legend

What do you mean by accessed?

0 Karma

sravani27
Path Finder

I want to see the latest timestamp when the datamodel was used by a dashboard or alert or savedsearch

0 Karma

BTB
Explorer

I don't think this is exactly it but it may lead you to the right path

 

| rest /services/datamodel/model |search eai:appName=search | table updated

 

The updated field shows when the model was last updated. 

0 Karma
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...