Description
This function displays the domains that have raw log downloads available.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
link |
string |
The raw logs URL. |
A URL path. |
/getaccesslog/accesslog_example.com_10_21_2014.gz", |
linked_domains |
string |
A list of addon domains with raw logs available.
|
|
|
updatetime |
string |
The log file's last update, in Unix time format. |
A Unix timestamp. |
1373907782 |
file |
string |
The raw logs file. |
A valid absolute file path. |
/usr/local/apache/domlogs/example.com |
txt |
string |
The domain with raw logs available. |
Any valid domain on the server. |
example.com |
humansize |
integer |
The formatted size of the file. |
Any positive integer, in Kilobytes (K), Megabytes (M), or Gigabytes (G). |
1M |
size |
integer |
The size of the file, in bytes. |
A positive integer. |
1 |
domain |
string |
The domain with raw logs available. |
Any valid domain on the server. |
example.com |
type |
string |
The file type. |
Any valid file type. |
standard |
humanupdatetime |
string |
The log file's last update. |
A timestamp in DDMM HH:MM:SS YYYYformat, where:
|
Mon Jul 15 12:03:02 2013 |
reason |
string |
A reason for failure. Note: This function only returns areasonvalue if there was an error. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |