Topic 1 Question 159
Your Cloud Run application writes unstructured logs as text strings to Cloud Logging. You want to convert the unstructured logs to JSON-based structured logs. What should you do?
Modify the application to use Cloud Logging software development kit (SDK), and send log entries with a jsonPayload field.
Install a Fluent Bit sidecar container, and use a JSON parser.
Install the log agent in the Cloud Run container image, and use the log agent to forward logs to Cloud Logging.
Configure the log agent to convert log text payload to JSON payload.
ユーザの投票
コメント(4)
- 正解だと思う選択肢: D👍 4Mar_Mar2023/10/25
- 正解だと思う選択肢: D
The Cloud Logging agent can be configured to convert log text payload to JSON payload by setting the process.payload parameter to json. This will cause the agent to parse the log text and convert it to a JSON object before forwarding it to Cloud Logging.
👍 2mshafa2023/11/04 - 正解だと思う選択肢: D
Vote D
👍 1nqthien0412922023/12/02
シャッフルモード