Which log level is most appropriate for recording detailed information useful for diagnosing problems during development but too verbose for production?
Think about the level that provides the most detailed information for developers.
DEBUG level logs provide detailed diagnostic information useful during development but are usually turned off in production to reduce noise.
What is the output of running the command logrotate -d /etc/logrotate.conf on a Linux system?
logrotate -d /etc/logrotate.conf
The -d flag is for debug mode without actual changes.
The -d option runs logrotate in debug mode, showing what actions would be taken without performing them.
Which configuration snippet correctly sets up a syslog client to forward all logs to a remote server at 192.168.1.100 on UDP port 514?
Single '@' means UDP, double '@@' means TCP in syslog forwarding.
In syslog configuration, *.* @192.168.1.100:514 forwards all logs via UDP to the remote server.
A developer notices that application logs are missing after configuring a new logging agent. Which of the following is the most likely cause?
Check file permissions for the logging agent.
If the logging agent cannot read log files due to permission issues, it will not forward logs even if running.
What is the best practice for setting a log retention policy in a production environment to balance storage use and compliance?
Consider legal and operational needs when deciding retention time.
Balancing storage and compliance means keeping logs long enough to meet requirements, then archiving or deleting them.