You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Get
URL/api/v1/api.php?target=log&action=get
DescriptionReturns a list of log entries. Use optional parameters to filter the list.
Returns

Examples:

SUCCESSFUL{"success":1,"message":"Search Successful.","data":[{"logId":"31568","time": "2012-05-07 17:44:43", "logLevel":"INFO","userId":"39","userName": "anna@6connect.com","logCategory": "User","message": "Anna Claiborne (anna@6connect.com) logged in via local authentication","ip":"107.111.0.228"}]}
ERROR{'success':0, 'message':'error message'}


Data Detail

Name
Type
Example
Description
logIdINTEGER24Unique log entry id.
timeDATETIME2012-05-07 22:10:07Date and time year to second.
logLevelSTRINGNOTICEStandard syslog log levels in verbose format (EMERG, ALERT, CRIT, ERR, WARNING, NOTICE, INFO, DEBUG).
userIdInteger11The unique user id associated with the log entry.
userNameSTRINGanna@6connect.comThe unique user name associated with the log entry.
logCategorySTRINGIPAMThe 6connect category for the log entry (User, IPAM, Resource Holder, DNS, Peering, Assistant, NTP, Reporting).
messageSTRINGCreated new children from 1.0.0.0/24The detailed log message.
ipSTRING107.111.0.228The remote IP address of the user who took the action being logged.
Required Parameters
None
Optional Parameters
Name
Type
Example
Description
likeFlagBOOL1When 1, string searches are done via LIKE with wildcards at both ends. When 0, strict comparison is used.
logIdINTEGER24Unique log entry id.
timeStartDATETIME2012-05-07 [21:00:00]Retrieve logs starting at this Date and optional time year to second.
timeEndDATETIME2012-05-07 [22:00:00]Retrieve logs ending at this Date and optional time year to second.
limitINTEGER100Total log entries to retrieve. Default limit is 1000 records.
offsetINTEGER50Offset from 0 to retrieve log entries
userNameSTRINGanna@6connect.comThe unique user name associated with the log entry.
logCategorySTRINGIPAMThe 6connect category for the log entry (User, IPAM, Resource Holder, DNS, Peering, Assistant, NTP, Reporting).
logLevelSTRINGNOTICEStandard syslog log levels in verbose format (EMERG, ALERT, CRIT, ERR, WARNING, NOTICE, INFO, DEBUG).
ipSTRING1.2.3.4The remote IP address of the user whose action was logged
blockSTRING1.2.3.4/8Used to return any actions performed on the specified block.
Example URL/api/v1/api.php?target=log&action=get

 



  • No labels