Skip to content

Commit 15eaa12

Browse files
authored
Merge pull request #4122 from vespa-engine/bjormel/rotate-access-log-on-size
Rotate access log if larger than configured limit
2 parents 30490e1 + 6b307d6 commit 15eaa12

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

en/access-logging.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@ <h2 id="configuring-logging">Configuring Logging</h2>
112112
For details on the access logging configuration see <a href="reference/services-container.html#accesslog">
113113
accesslog in the container</a> element in <em>services.xml</em>.
114114
</p>
115+
<p>
116+
Key configuration options include:
117+
</p>
118+
<ul>
119+
<li><strong>fileNamePattern</strong>: Pattern for log file names with time variable support</li>
120+
<li><strong>rotationInterval</strong>: Time-based rotation schedule (minutes since midnight)</li>
121+
<li><strong>rotationSize</strong>: Size-based rotation threshold in bytes (0 = disabled)</li>
122+
<li><strong>rotationScheme</strong>: Either 'sequence' or 'date'</li>
123+
<li><strong>compressionFormat</strong>: GZIP or ZSTD compression for rotated files</li>
124+
</ul>
115125

116126
<h3 id="logging-request-content">Logging Request Content</h3>
117127
<p>
@@ -186,7 +196,7 @@ <h2 id="log-rotation">Log rotation</h2>
186196
<p>
187197
Apache httpd style log <em>rotation</em> can be configured by setting the <em>rotationScheme</em>.
188198
There's two alternatives for the rotationScheme, sequence and date.
189-
The rotation time is controlled by setting <em>rotationInterval</em>.
199+
Rotation can be triggered by time intervals using <em>rotationInterval</em> and/or by file size using <em>rotationSize</em>.
190200
</p>
191201

192202

@@ -241,7 +251,6 @@ <h3 id="rotation-interval">Rotation interval</h3>
241251
E.g. "0 100 240 480 ..." is expanded to "0 100 240 480 720 960 1200"
242252
</p>
243253

244-
245254
<h3 id="log-retention">Log retention</h3>
246255
<p>
247256
Access logs are rotated, but not deleted by Vespa processes.

0 commit comments

Comments
 (0)