I want to display the user details, search query that was run, and url of the user who are running the real time searches. please help me with the search.
one way is to use the Job Manager accessible with this URL /app/search/job_manager?jobStatus=running and check for the [real-time] searches.
Another way is to use a rest endpoint with this search:
| rest /services/search/jobs/ | search isRealTimeSearch="1"
and get all needed fields from there.
Hope this helps to get you started ...