title: Perform hourly logrotate on JBoss EAP 7 access log
body: <p>By default, JBoss EAP 7 rotates its access log daily.
  I needed to set this to like, HOURLY.</p>
  
  <p><strong>Reason</strong>:</p>
  
  <ul>
  <li>We have a script that automatically downloads the <em>rotated</em> access log file.</li>
  <li>But doing this ^  would greatly increase CPU usage (because the access log at the end of the day is VERY large, and our system's performance is unfortunately reduced while downloading it)</li>
  </ul>
  
  <p>What I know is that, in the <strong>standalone.xml</strong>, I've tried adding the one below to make the JBoss <em>server</em> log to rotate every hour.</p>
  
  <pre><code>    &lt;suffix value=".yyyy-MM-dd-HH"/&gt;
  </code></pre>
  
  <p>But this method does not apply to access log (because its settings is weirdly placed in a different part of the standalone.xml)</p>
  
  <p>I've tried experimenting with the <code>access-log</code> tags to have any of the following. But it just throws an error.</p>
  
  <ol>
  <li><code>&lt;access-log suffix=".yyyy-MM-dd-HH" ...</code></li>
  <li><code>&lt;access-log rotate="hourly" ...</code></li>
  </ol>
  
  <p>...and i can't seem to find a VERY detailed guide about <strong>standalone.xml</strong> of JBoss EAP 7. I'm thinking that I should use a tag value for the <code>access-log</code> part.</p>
  
  <p>Please help. Does anyone know of a way to do this? :(</p>
  
  <p>System specs</p>
  
  <ul>
  <li>Oracle Linux 6.9</li>
  <li>JBoss EAP 7</li>
  </ul>
  
  <p>Thanks and best regards.</p>