Currently my query uses dedup to remove identical events:
dedup comp_id _time
Is there an alternative to dedup to only see unique events?
The dc function just gives a count of unique values of the specified field. It's not the same as dedup. Try this as a dedup alternative:
stats values(*) as * by comp_id check_id _time