<%= log_dir -%>/*.log
{
  rotate 8760
  dateext
  dateformat -%Y%m%d-%s
  compress
  size 1
  missingok
  postrotate
    invoke-rc.d rsyslog reload >/dev/null 2>&1 || true
    sleep 10
  endscript
}

<%= @log_dir -%>/*.log
{
  rotate 8760
  dateext
  dateformat -%Y%m%d-%s
  compress
  size 1
  missingok
  postrotate
    invoke-rc.d rsyslog reload >/dev/null 2>&1 || true
    sleep 10
  endscript
}

Use `@` to access `log_dir` in template
Use `@` to access `log_dir` in template

> Variable access via `log_dir` is deprecated
