I'm very much a Splunk novice, but I've been playing around with trying to do some health checks for Splunk so when we configure new forwarders etc we can tell whether the sourcetype is being ingested.
I had the date picker on 7 days came up with:
|metadata type=sourcetypes | convert ctime(firstTime) | Fields - type, totalCount, recentTime, lastTime
This seems to give me the first time within the last 7 days that all sourcetypes were ingested.
I was hoping someone could help me with the logic to make this only show sourcetypes whose first began ingesting in the last 7 days?