Auditing and Reporting

Couchdrop has comprehensive auditing across all operations. Audit events can be pulled from the API

Get audit events

POST https://api.couchdrop.io/manage/files

Query Parameters

NameTypeDescription

page

Number

Page number

pagesize

Number

Required page size

Headers

NameTypeDescription

token*

String

API token

Request Body

NameTypeDescription

transfers

Boolean

Example filter. See filters below for more details of available filters

{
    "files":[{
        "time":<timestamp>,    
        "filename":"",
        "filename_relative":"",
        "authenticated_user":"",
        "event_type":"", 
        "success":true,
        "total_size":0,
        "additional_info": "",
        "message": "a message"
    }],
    "pagination":{
        "total_records": total_records,
        "page": page,
        "page_size": pagesize,
        "total_pages": total_pages
    }
}

Complex Filters

The API allows you to filter and search for specific events and event types. Filters are supplied as POST body params in JSON.

Filter ParamDescriptionExample value

transfers

Include UPLOAD and DOWNLOAD events

true

authentication

Include authentication events.

true

malware

Include malware events

true

admin

Include admin and management events

true

filesystem

Include filesystem events like LS/LSTAT/RENAME

true

workflow

Include workflow events

true

authenticated_user

Filter events to a specific user

"user1"

transaction_id

Filter events to a specific transaction id

"<uuid>"

filename

Filter events to a specific filename

"example.txt"

search

Wildcard search on the filename and message field

"downloaded file"

workflow_id

Filter events to those to those generated by a specific workflow/automation

"<uuid>"

Specifying a time frame filter

You can restrict results to a specific time period, this can be done using relative or absolute time. Time filtering is sent to the API in the same way as the Complex Filters above.

Filter paramDescriptionExample

date

Filter type

Accepted values:

  • hour

  • 2hours

  • day

  • week

  • month

  • custom

custom_start_date

When "date" is set to "custom" this is required. A unix timestamp is required

1674767806

custom_end_date

End date for above

1674769100

Last updated