Find the cumulative time when no data was logged

Hello I am trying to find how much outage we had for a particular application. So for an index we can see in the kibana dashboard the time when no data was logged. But would there be a way to find the total time when no data was logged using a query.
Looking for ideas, for now not too easy to find something that elastic does not have :slight_smile: