You have installed the Ops Agent on a Linux Compute Engine VM that writes Nginx access logs to /var/log/nginx/access.log. You need the agent to ingest those log entries under the log name nginx_access while continuing to collect the default system metrics. Which config.yaml fragment satisfies the requirement?
The Ops Agent expects log ingestion settings under a top-level logs block. A file-based receiver must be defined, specifying type: files and include_paths that list the log file. That receiver is then referenced from a service pipeline. Placing the receiver under the metrics section, using an unsupported receiver type, or omitting the pipeline causes the agent to ignore the file.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the logs block in the Ops Agent config file?
Open an interactive chat with Bash
What is a service pipeline in the Ops Agent configuration?
Open an interactive chat with Bash
Why should log ingestion settings not be placed under the metrics block?
Open an interactive chat with Bash
What is the Ops Agent?
Open an interactive chat with Bash
Why does the Ops Agent require a service pipeline in config.yaml?
Open an interactive chat with Bash
What is the difference between a receiver configuration under metrics and logs?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .