Skip to content
Last updated

Application Logs

Efficiently manage and retrieve application logs with the "Application Logs" section.

Create Application Log

To create an application log, utilize the following endpoint: POST /api/AppLog

Input

//POST /api/AppLog
{
  "applicationGuid": "dd1d816d-2e80-478c-93fa-6cf29b168de1",
  "owner": "My owner",
  "scope": "My scope",
  "source": "My source",
  "target": "My target",
  "payload": "My payload"
}
FieldDescription
ApplicationGuidThe application guid associated with the log
OwnerWho sent the event
ScopeThe reason of the event
TargetWhere the event is received
PayloadThe content of the event

Output

{
  "guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "applicationGuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "owner": "string",
  "timeStamp": "2023-05-03T12:59:37.110Z",
  "scope": "string",
  "source": "string",
  "ip": "string",
  "target": "string",
  "hash": "string",
  "payload": "string"
}
FieldDescription
GuidThe auto generated guid
Application GuidSame as input
OwnerSame as input
TimeStampWhen the application log is created
ScopeSame as input
SourceSame as input
IpThe IPv4 or IPv6 from where the application log is created
TargetSame as input
HashThe hash of the application log that will be sent on the blockchain
PayloadSame as input

Get application logs

To retrieve application logs, use the following endpoint: POST /api/AppLog/List

Input

//POST /api/AppLog/List
{
  "applicationGuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "dateFrom": "2020-04-01T00:00:00.0000000",
  "dateTo": "2030-04-01T00:00:00.0000000",
  "page": 1,
  "itemsPerPage": 20
}
FieldDescription
ApplicationGuidFilters the application logs by the application guid
DateFromIf set, retrieves the logs created starting from this date
DateToIf set, retrieves the logs created up to this date
PagePage number
ItemsPerPageItems per page

The only input required parameters are page and itemsPerPage

Output

[
  {
    "guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "applicationGuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "owner": "string",
    "timeStamp": "2023-05-03T14:08:33.901Z",
    "scope": "string",
    "source": "string",
    "ip": "string",
    "target": "string",
    "payload": "string",
    "blockchainStatus": 0,
    "blockchainStatusDate": "2023-05-03T14:08:33.901Z",
    "blockchainProcessId": "string",
    "blockchainUuid": "string",
    "hash": "string",
    "blockchainTxHashUrl": "string"
  }
]
FieldDescription
GuidThe application log guid
ApplicationGuidThe application guid related to the log
OwnerThe owner of the application log
TimeStampWhen the application log is created
ScopeThe scope of the application log
SourceThe source of the application log
IpThe IPv4 or IPv6 from where the application log is created
TargetThe target of the application log
PayloadThe payload of the application log
BlockchainStatusSave status on the blockchain (Registered = 0, Queued = 1, ProcessCreated = 2, Notarized = 3, Error = 4)
BlockchainStatusDateWhen the status of the save on the blockchain changes
BlockchainProcessIdThe id of the process on the blockchain
BlockchainUuidUUID generated by the blockchain
HashThe hash of the application log that is sent to the blockchain
BlockchainTxHashUrlThe hash produced by the blockchain on success (the blockchain may take a bit of time and it may not be valorized immediately after the creation of a consent)

The result collection doesn't include application logs related to deleted applications

Get audit trail PDF

To get the audit trail PDF document use the following endpoint:

GET /api/AppLog/GetAuditTrail/{applicationLogGuid}

Output

The Audit Trail PDF file