Log fields

Updated at:

This topic describes the operation log fields for queue messages and topic messages in Simple Message Queue (formerly MNS).

Operation logs of queue messages

Operation logs of queue messages are generated when operations are performed on queue messages, for example, when you send, consume, and delete messages. Each operations log contains multiple fields that indicate different information. The fields contained in a log vary based on different operations. The following tables describe the log fields and the relationships between the operation types and log fields.

  • Log fields

    Each operations log contains multiple fields. The following table describes the fields.

    Field

    Description

    Time

    The time when the operation is performed.

    MessageId

    The ID of the message involved in the operation.

    QueueName

    The ID of the queue involved in the operation.

    AccountId

    The Alibaba Cloud account or RAM user to which the queue belongs.

    RemoteAddress

    The endpoint of the client that performs the operation.

    NextVisibleTime

    The time when the message is visible after the operation is complete.

    ReceiptHandleInRequest

    The value of the ReceiptHandle parameter that is passed into the request when the operation is performed.

    ReceiptHandleInResponse

    The value of the ReceiptHandle parameter that is returned after the operation is complete.

    ProcessTime

    The duration in which the operation is performed.

    RequestId

    The ID of the operation.

    Action

    The specific action of the operation. Valid values: Delete and Send.

  • Fields of different operations

    Logs that are generated by different operations contain different fields. The following table shows the log fields of different operations.

    Operation

    Time

    QueueName

    AccountId

    MessageId

    RemoteAddress

    NextVisibleTime

    ReceiptHandleInResponse

    ReceiptHandleInRequest

    SendMessage/BatchSendMessage

    Yes

    Yes

    Yes

    Yes

    Yes

    Yes

    No

    No

    PeekMessage/BatchPeekMessage

    Yes

    Yes

    Yes

    Yes

    Yes

    No

    No

    No

    ReceiveMessage/BatchReceiveMessage

    Yes

    Yes

    Yes

    Yes

    Yes

    Yes

    Yes

    No

    ChangeMessageVisibility

    Yes

    Yes

    Yes

    Yes

    Yes

    Yes

    Yes

    Yes

    DeleteMessage/BatchDeleteMessage

    Yes

    Yes

    Yes

    Yes

    Yes

    Yes

    No

    Yes

Operation logs of topic messages

Operation logs of topic messages are generated when operations are performed on topic messages, for example, when messages are published and pushed. The following tables describe the log fields and the relationships between the operation types and log fields.

  • Log fields

    Each operations log contains multiple fields. The following table describes the fields.

    Field

    Description

    Time

    The time when the operation is performed.

    MessageId

    The ID of the message involved in the operation.

    TopicName

    The ID of the topic involved in the operation.

    SubscriptionName

    The ID of the subscription involved in the operation.

    AccountId

    The Alibaba Cloud account or RAM user to which the topic belongs.

    RemoteAddress

    The endpoint of the client that performs the operation.

    NotifyStatus

    The status code or error message returned when Simple Message Queue (formerly MNS) pushes a message to a client.

    ProcessTime

    The duration in which the operation is performed.

    MessageTag

    The tags of the message.

    RequestId

    The ID of the operation.

    Action

    The specific action of the operation. Valid values: Delete and Send.

  • Fields of different operations

    Logs that are generated by different operations contain different fields. The following table shows the log fields of different operations.

    Operation

    Time

    MessageId

    TopicName

    SubscriptionName

    AccountId

    RemoteAddress

    NotifyStatus

    SubscriptionName

    PublishMessage

    Yes

    Yes

    Yes

    No

    Yes

    Yes

    No

    No

    Notify

    Yes

    Yes

    Yes

    Yes

    Yes

    No

    Yes

    Yes

  • NotifyStatus

    NotifyStatus is a field that identifies the reason why Simple Message Queue (formerly MNS) fails to push messages to endpoints. The following table describes the error codes and the corresponding solutions.

    Error code

    Description

    Recommended solution

    2xx

    The message is pushed.

    N/A

    Other HTTP status codes

    After the message is pushed to the endpoint, an HTTP status code other than 2xx is returned.

    Check the processing logic of the endpoint.

    InvalidHost

    The specified endpoint in the subscription is invalid.

    Use the curl or telnet command to check whether the specified endpoint in the subscription is valid.

    ConnectTimeout

    MNS failed to connect to the specified endpoint in the subscription.

    Use the curl or telnet command to check whether the specified endpoint in the subscription is accessible.

    ConnectFailure

    MNS failed to connect to the specified endpoint in the subscription.

    Use the curl or telnet command to check whether the specified endpoint in the subscription is accessible.

    UnknownError

    An unexpected error has occurred.

    Contact the Simple Message Queue (formerly MNS) technical support.