Activity Logging for Omnisearch similar to Day CQ DAM Event Recorder (om.day.cq.dam.core.impl.DamEventRecorderImpl)
The Day CQ DAM Event Recorder OSGi bundle provides activity logging on the user's /home/user/ folder in a node like the following:
/home/users/O/OO/activities/dam/2024/04/24/xxx
... and contains information that we can later write activity reports on (who uploaded or published what and when, etc)
What would be the best way to do something similar with site Omnisearch asset searches, say for instance to be able to report on what users were searching for in the DAM? Basically when the user runs a search from the DAM Assets interface, I want to log the search term they used to a node off of their /home/users/nnn/activities/ folder.
I considered listening for events but Omnisearch doesn't appear to be triggering any. I also considered registering my own AssetOmniSearchHandler.class based on com.day.cq.dam.core.impl.omnisearch.AssetOmniSearchHandler but cannot find the bundle sources for the current version of com.day.cq.dam ca-dam-core 5.12.382 which includes the omnisearch dependencies.
Can this be done reasonably?
Thanks!!!