Cipafilter Support:
309 517 2022 option 2
Mon - Fri 7 AM - 6 PM CT
Custom Reports - Top Offender
Posted by Jim Giseburt, Last modified by Clayton Spencer on 10 January 2019 11:40 AM

This article is applicable to users on versions 9.0 and above.


This article will detail how to create an automatic report run daily that lists the top 20 users based on trips.


  1. On the Notifications page, select Add Report at the bottom of the page.

    An Add Custom Report window should be displayed.

    Add custom report window

  2. Enter the name of the report:  Top Offender for the Day.

  3. Enter the description of the report:  Top Offender for the Day based on Trips.

  4. Enter the following text for the report:

        COUNT(username) AS "Number of Blocks", username AS "Username"
        log_raw AS a, users AS b
        A.userid = b.userid
        AND a.timestamp > NOW() - INTERVAL '1 day'
        AND (a.status = 2 OR a.status = 4)
        "Number of Blocks" DESC
    LIMIT 20

    Top offender for the day report window

  5. Click the Add Report button in the edit window to save the report.

  6. To dispatch this report:

    1. Select the appropriate e-mail address in the E-mail Addresses section of the page, and

      E-mail address section

    2. Select the Daily option for this report in the Report Notifications section of the page.

      Report notification section

Daily reports are dispatched Monday through Friday at 6 PM.  Weekly reports are dispatched Monday at 12:01 AM.

Note:This report is specified as a daily report.  If you would like to utilize this report as a weekly report make the following changes:

  1. In the text of the report, change INTERVAL '1 day' to INTERVAL '1 week', and

  2. Select the Weekly option for this report in the Report Notifications section of the page.

 addcustomreportwindow.png (12.19 KB)
 topoffenderforthedayreportwindow.png (20.72 KB)
 e-mailaddressessection.png (14.36 KB)
 reportnotificationssection.png (54.68 KB)
(0 vote(s))
Not helpful

Comments (0)
©Cipafilter 2017. All Rights Reserved.