WebDAV Action Logs

A WebDAVActionLog is an audit log for monitoring and troubleshooting operations made to your site through WebDAV protocol.

Logs available through this endpoint are retained for 6 months, after which they are automatically discarded. For longer retention, use Files.com SIEM integrations to stream logs in real time to your preferred SIEM, or configure SIEM streaming to a file.

List WebDAV Action Logs

SDK Function

WebDavActionLog.list()

Return Object

ListIterator<WebDavActionLog>

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Additional Arguments

Example Request

import com.files.ListIterator;
import com.files.exceptions.*;
import com.files.exceptions.ApiErrorException.*;
import com.files.models.WebDavActionLog;

try {
  HashMap<String, Object> parameters = new HashMap<>();
  ListIterator<WebDavActionLog> webDavActionLogs = WebDavActionLog.list(parameters);
  for (WebDavActionLog webDavActionLog : webDavActionLogs.listAutoPaging()) {
    // Operate on webDavActionLog
  }
} catch (NotAuthenticatedException e) {
  System.out.println("Authentication Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
} catch (SdkException e) {
  System.out.println("Unknown Error Occurred (" + e.getClass().getName() + "): " + e.getMessage());
}

The WebDavActionLog Object

Some of the functions above return a WebDavActionLog object. The attributes of this object are listed below.

AttributeDescription
timestamp
date-time
Start Time of Action. Deprecrated: Use created_at.
remote_ip
string
IP Address of WebDAV Client
server_ip
string
IP Address of WebDAV Server
username
string
Username
auth_ciphers
string
Authentication Ciphers
action_type
string
Action Type
path
string
Path as sent by the Client (may not match Files.com path due to user root folders for WebDAV). This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
true_path
string
Path on Files.com
name
string
Name of File
http_method
string
Method of the HTTP call.
http_path
string
Path of the HTTP call.
http_response_code
int64
HTTP Response Code returned to the WebDAV Client.
size
int64
Size of File That was Uploaded or Downloaded.
entries_returned
int64
Number of entries returned when listing files and folders
success
boolean
Whether WebDAV Action was successful.
status
string
WebDAV Action status.
Possible values: SUCCESS, FAILURE, PARTIAL_TRANSFER
duration_ms
int64
Duration (in milliseconds)
created_at
date-time
Start Time of Action