312-39 Log Management Practice Question
You are configuring a syslog-ng server to receive logs from multiple network devices. To ensure that logs from different departments are stored in separate directories based on the hostname, which directive should you utilize in the destination path?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Utilizing template macros such as /var/log/$HOST/$YEAR/$MONTH/
The use of macros like $HOST or $YEAR allows for dynamic directory creation based on incoming log metadata.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Utilizing template macros such as /var/log/$HOST/$YEAR/$MONTH/
Why this is correct
Macros dynamically map incoming metadata to the directory structure.
- ✗
Defining separate log paths for every individual IP address
Why it's wrong here
This is inefficient and not scalable.
- ✗
Configuring the global log_level to debug
Why it's wrong here
Log levels control verbosity, not file paths.
- ✗
Using hardcoded static path strings only
Why it's wrong here
Static paths prevent the separation of logs by source.
About these practice questions
One of 202 original 312-39 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official EC-Council exam blueprint
This 312-39 practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 312-39 exam.