Updated on 2023-04-27 GMT+08:00
How Do I Enable Structured Log Query?
Scenario
To check the status of asynchronous invocation requests, view the records by choosing Configuration > Configure Async Notification on the function details page, as shown in Figure 1.
Prerequisites
You have enabled asynchronous invocation status persistence.
Procedure
- Contact customer service to add your account to the whitelist of this feature.
- On the Configure Async Notification page, click Enable LTS, as shown in Figure 2.
- Click Edit next to Asynchronous Notification Policy, and enable Asynchronous Invocation Status Persistence, as shown in Figure 3 and Figure 4.
- Configure structured query on the LTS console.
- On the function details page, view the log group and log stream. Press F12, choose Network, enter filter async-status-log-detail, and obtain the log group ID and log stream ID, as shown in Figure 5.
- On the LTS console, locate the log group and log stream by their IDs, as shown in Figure 6.
- On the log stream details page, click the gear icon in the upper right, as shown in Figure 7.
- Configure log structuring, as shown in Figure 8.
- Click Intelligent Extraction, as shown in Figure 9.
- Click to modify the field definition as follows:
- Change field1 to function_urn and its type to string.
- Change field2 to request_id and its type to string.
- Change field3 to seq_status and its type to long.
- Change field4 to operation_timestamp and its type to long.
- Change field5 to error_code and its type to long.
- Change field6 to error_message and its type to string.
Enable Quick Analysis, as shown in Figure 10. - Click Save. Figure 11 shows the configuration.
Parent topic: General FAQs
General FAQs FAQs
- What Is FunctionGraph?
- Do I Need to Apply for Any Compute, Storage, or Network Services When Using FunctionGraph?
- Do I Need to Deploy My Code After Programming?
- How Do I Obtain a Token?
- What Runtimes Does FunctionGraph Support?
- How Much Disk Space Is Allocated to Each FunctionGraph Function?
- Does FunctionGraph Support Function Versioning?
- How Does a Function Read or Write Files?
- How Do I Set a Proxy When Using CLI?
- Does FunctionGraph Support Function Extension?
- Which Permissions Are Required for an IAM User to Use FunctionGraph?
- How Can I Create an ODBC Drive-based Python Dependency Package for Database Query?
- What Is the Quota of FunctionGraph?
- What Chinese Fonts Does FunctionGraph Support?
- How Does FunctionGraph Resolve a Private DNS Domain Name?
- How Does a Container Image–based Function Resolve a Private DNS Domain Name?
- How Do I Use a Domain Name to Access an API Registered with API Gateway (Dedicated)?
- What Are the Common Application Scenarios of FunctionGraph?
- Why Can't the API Gateway Domain Name Bound to a Service Be Resolved During Function Invocation?
- Does FunctionGraph Support Synchronous Transmission at the Maximum Intranet Bandwidth?
- What If the VPC Quota Is Used Up?
- How Can I Print Info, Error, or Warn Logs?
- Can I Set the Domain Name of an API to My Own Domain Name?
- Can I Change the Runtime?
- Can I Change a Function's Name?
- Why Is Message "failed to mount exist system path" Displayed?
- How Do I Obtain Uploaded Files?
- Why Can't I Receive Responses for Synchronous Invocation?
- What Should I Do If the os.system("command &") Execution Logs Are Not Collected?
- Which Directories Can Be Accessed When a Custom Runtime Is Used?
- Which Minor Versions of Python 3.6 and 3.9 Are Supported?
- Which Actions Can Be Used Instead of a VPC Administrator Agency for VPC Access?
- What Are the Possible Causes for Function Timeout?
- How Do I Obtain the Code of a Function?
- Do You Have Sample Code for Initializers?
- How Do I Enable Structured Log Query?
- Can I Enable a Listening Port in a Function to Receive External TCP Requests via EIP?
- Does FunctionGraph Support Domain Name Resolution?
- How Do I Obtain the Source IP Address of an HTTP Request Initiated by a Function?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore